Ticket Q520058
Visible to All Users

Allow multiple selection of checkedits in xtragrid column

created 12 years ago

I have an XtraGrid with an unbound column with it's columnEdit property assigned to a checkedit repository item. How can I allow the user to check checkboxes in multiple rows? Currently, only 1 checkbox can be checked at a time.

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hi,
GridView does not cache values of an unbound column, because it is impossible to determine when the cache should be cleared automatically. GridView just displays values provided by the ColumnView.CustomUnboundColumnData event. So, to display a specific value in a cell, you need to pass a corresponding value to the e.Value parameter based on a processed column and row. Everything returned as an e.Value parameter will be displayed in GridView. Each time a cell needs to be updated, the CustomUnboundColumnData event is raised.
We have an example (How to create and populate an unbound column), which demonstrates how a simple caching mechanism can be implemented.
I have modified this example to demonstrate how to allow a user to check checkboxes in several rows. Please find it in the attachment. In addition, I kindly ask you to review the Unbound Columns help article.
Please feel free to contact us in case of further difficulties.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.