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
Post a Comment