0

I am implementing master detail view in devexpress grid control in winforms using C#.

In MasterRowGetChildList event I am binding data at runtime on expansion of grid using e.childlist property.

how to add a checkbox in dynamic data grid.

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
T.S.Sathish
  • 69
  • 1
  • 8
  • you want to use the check-box to select rows? if yes what version of devexpress are you using? – Ezi Apr 20 '15 at 14:24
  • Why do you not add an unbound column?? – Niranjan Singh Apr 21 '15 at 07:24
  • Thanks Ezi,Niranjan. I found the solution I simply added this.gridname.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; and this.grdname.OptionsSelection.MultiSelect = true; – T.S.Sathish Apr 22 '15 at 15:09
  • please add this as a answer. and select it as accepted answer. –  Apr 22 '15 at 15:18

1 Answers1

1
this.gridname.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;

this.grdname.OptionsSelection.MultiSelect = true;
Sakthivel
  • 1,890
  • 2
  • 21
  • 47