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.
Unfortunately, activation email could not send to your email. Please try again.

Clearing selections in grouping grid

Thread ID:

Created:

Updated:

Platform:

Replies:

34810 Sep 16,2005 06:17 AM Sep 16,2005 08:20 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 16, 2005 06:17 AM

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

Administrator [Syncfusion]
Replied On September 16, 2005 08:20 AM

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.

CONFIRMATION

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.

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.

;