Hi Swaminath,
For cell based selection in a grid :
>>>>>>>>>>>>>>>>>>>>
You can try this code.
this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any ^ GridSelectionFlags.Row ;
For record based selection in a grid:
>>>>>>>>>>>>>>>>>>>>
You can handle the SelectedRecordsChanging event and set e.Cancel to true for the RowHeaderCell. Below is a code snippet that show this task.
this.gridGroupingControl1.SelectedRecordsChanging +=new SelectedRecordsChangedEventHandler(gridGroupingControl1_SelectedRecordsChanging);
private void gridGroupingControl1_SelectedRecordsChanging(object sender, SelectedRecordsChangedEventArgs e)
{
if( e.Action == SelectedRecordsChangedType.Added )
e.Cancel = IsRowHeaderCell;
}
Please refer to the attached sample for implementation and let me know if this helps.
GGCCancelRowSelection.zipBest regards,
Haneef