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.
i'm using a GridControl which behaves much like a listbox.
The user can select a range of rows using the shift key and he can also select multiple individual rows with the ctrl key.
I've set the folowing properties :
- ListBoxSelectionMode = MultiExtended;
- AllowSelection = alphablent, row, multiple, shift, keyboard;
- ControllerOptions = ClickCells, SelectCells;
Is there a way to disable the multiple selection then the user clicks on a cell and drags the mouse and have it behade like SelectionMode.One instead?
Olivier
ADAdministrator Syncfusion Team July 18, 2003 02:27 PM UTC
You can handle the SelectionChanging event and cancel it if the grid already has selections and e.range is not empty. Haven't actually tried this in the ListBoxSelectionMode so ther emay be something I am overlooking, but I think it should work.