The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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 07:19 PM UTC
Try setting this property.
this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
It turns off selections with the right-click.
PZPeter ZaborskiNovember 6, 2003 07:50 PM UTC
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?
-Peter
ADAdministrator Syncfusion Team November 6, 2003 07:56 PM UTC
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.