We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Clearing selections in grouping grid

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

1 Reply

AD Administrator 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.

Loader.
Live Chat Icon For mobile
Up arrow icon