GridDataBoundGrid defaults to 1st row selected after DataSource set.

Is there a way I can disable that feature? I don't want any rows to be selected after the DataSource is set.

I know I could set the selections to 0 after the DataSource but I would rather not have the activated cell event fire off (from the DataSource set). That would throw a lot of coders off when we are wrapping this up into another object.

Thanks,
-jv

1 Reply

NR Nirmal Raja Syncfusion Team June 3, 2010 07:17 AM UTC

Hi Jeff,

Thank you for your interest in Syncfusion products.

The selection of the cells can be removed by clearing the Selections of the GridDataBoundGrid, at the same time a current cell can be activated by moving the current cell to the corresponding row index and column index.

Please refer the code below:
gridDataBoundGrid1.Selections.Clear();
gridDataBoundGrid1.CurrentCell.MoveTo(1, 1);


Let me know if you have any queries.

Regards,
Nirmal

Loader.
Up arrow icon