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 have a GridDataBoundGrid that I'm trying to use as a multiselect control. Users will select several rows and then perform an action based on the selections. When focus leaves the grid, all the selections are removed and focus is put on the first row. How do I prevent my selections from clearing when leaving the grid?
HAhaneefm Syncfusion Team March 28, 2007 07:08 PM UTC
Hi Todd,
One way you can do this by handling the Model.Selectionchanging event of the grid and set e.Cancel to true for keeping the selection in a grid. Here is a code snippet.
this.grid.Model.SelectionChanging += new GridSelectionChangingEventHandler(Model_SelectionChanging);