Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add an individual column to cxGrid and use for selection purposes (checkbox)

I do not want to add a database field in my actual database to use for selection purpose so I thought to use cxGrid's ability to add a separate field in the grid. I add the field,name it (select),change it's property to that of 'checkbox' but it seems I cant use it as it is not selectable in the grid. It behaves like read-only. How can I enable such thing ? Also,how do you later manipulate with such selected record in the grid ? (example: I want to insert that selected record under another date).

unable to select

like image 531
user763539 Avatar asked Dec 20 '25 20:12

user763539


1 Answers

A few things you need to do. 1. Set the new field's ValueType property. 2. Set the DataController.KeyFieldName property.

See https://www.devexpress.com/Support/Center/Question/Details/A1095 for step-by-step instructions from DevExpress.

like image 141
Sam M Avatar answered Dec 22 '25 12:12

Sam M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!