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.
Hi David,
You may try adding this row :
grid.AllowSelection = GridSelectionFlags.None;
Thx!
Eric
ADAdministrator Syncfusion Team May 7, 2005 09:50 AM UTC
I did it, but It can''t remove the selection. I don''t know why.
( I used event Currentcell_activating)
Thanks
ADAdministrator Syncfusion Team May 7, 2005 10:16 AM UTC
If you set grid.AllowSelection = none in Form.Load (and do not have ListBoxSelectionMode set to something other than none), your user should never be able to select anything. So, no selection will be need to be removed.
In general, to clear all selections, you call grid.Selections.Clear(). But if ListBoxSelectionMode is set to something other than none, the grid may reselect the row after it is cleared or whenever you user clicks another cell.
If you have ListBoxSelectionMode set to something other than None, then you will have something problem trying to not have a selected row. Setting this property indicated you always want to see a whole row selected when the user clicks on the grid.