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.
Allow multiple selection of checkedits in xtragrid column
Answers approved by DevExpress Support
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.