c# - Add Checkbox Column into GridControlEx -


what want add column filled checkboxes , placed on left side of grid. grid rows binding query. have code:

string query = "select transid, company, period, empid, employee trx" datatable tblclaim; tblclaim = db.sql.select(query); tblclaim.columns.add("process", typeof(bool)); //i want column placed on left side of grid gcxclaim.exgridcontrol.datasource = tblclaim; 

what code is, checkbox disabled , column placed on right side. while tried place tblclaim.columns.add("process", typeof(bool)); before tblclaim = db.sql.select(query);, got error. how can that? thanks.

try this,

tblclaim.columns.add("process", typeof(bool)).setordinal(0); 

this set index of column "process" 0


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -