Like the subject says, what's the recommended way to preserve the selection state of a GridDataBoundGrid if the user clicks on a cell contained in the currently selected range in a way to cause the context menu to pop up?
The default settings seem to clear the selection, unlike XL and other programs.
Thanks for any hints.
ADAdministrator Syncfusion Team November 6, 2003 02:19 PM
Try setting this property.
this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
It turns off selections with the right-click.
PZPeter ZaborskiNovember 6, 2003 02:50 PM
Hi Clay, thanks for the quick reply. Close but not quite 100%. In XL, right clicking inside the selected range brings up the context menu. But right clicking outside of the selected range clears the selection (or selects the clicked on cell).
Is this achievable without mouse event handling?
ADAdministrator Syncfusion Team November 6, 2003 02:56 PM
No, there is no property that yields this behavior. You could probably use grid.SelectionsChanging instead of a mouse event, but it still would be an event needed.