I have discovered a bug with selections in GridDataBoundGrid. To replicate this bug try the following steps:
create a GridDataBoundGrid and ensure that it has some data in it
whilst holding down Ctrl, select a single cell
still holding Ctrl, select another other single cell
still holding Ctrl, select the first cell again
still holding Ctrl select the second cell again
repeat as often as you like
Now look at _grid.Selections.Ranges.Info property. You will see that rather than each cell being added only once, they are each present multiple times.
If you need more info, just ask.
ADAdministrator Syncfusion Team March 11, 2004 08:31 AM UTC
Pressing control will allow you to add the sane range twice. This is by design. (Without this, it would be difficult to add two different ranges that intersect using the control key).
If you do not want this behavior, then you can handle the SelectionChanging event (Model.SelectionChanging in GridDataBoundGrid), and cance the selection if it is a control-click into a selected cell.