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 want to clear all selections in the grouping grid. To do this I use the following:
gridGroupingControl1.TableModel.Selections.Clear();
When I do this the marker for the current cell also disappears, which I don''t want. How can I remove all selections without loosing the current cell?
I''m using
AllowSelection = GridSelectionFlags.Any;
ListBoxSelectionMode = SelectionMode.None;
and v. 3.2.1.0
ADAdministrator Syncfusion Team September 16, 2005 12:20 PM UTC
Hi Kjetil,
Try the following snippet in the button handler.
GridRangeInfo r= this.gridGroupingControl1.TableModel.Selections.Ranges[0];
int row=r.Top;
int col=r.Left;
gridGroupingControl1.TableModel.Selections.Clear();
this.gridGroupingControl1.Focus();
this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(row,col);
Regards,
Leo.