First make sure in your DefineGridStructure() Method you set the following settings:
- Code: Select all
RadGrid1.AllowMultiRowSelection = true;
RadGrid1.AllowAutomaticInserts = true;
RadGrid1.ClientSettings.Selecting.AllowRowSelect = true;
RadGrid1.ClientSettings.Selecting.EnableDragToSelectRows = true;
Next in your method when your binding data to the columns make sure you create a new GridClientSelectColumn.
- Code: Select all
GridClientSelectColumn checkColumn;
Then when you want to create the check box column use something like this:
- Code: Select all
checkColumn = new GridClientSelectColumn();
checkColumn.HeaderText = "XYZ Column";
checkColumn.Visible = true;
checkColumn.Display = true;
checkColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
RadGrid1.MasterTableView.Columns.Add(checkColumn);
Hope this helps!
