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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Clearing selections in grouping grid

Thread ID:





34810 Sep 16,2005 10:17 AM UTC Sep 16,2005 12:20 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On September 16, 2005 10:17 AM UTC

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.

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon