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

Grouped Columns - clear selection

Thread ID:





70135 Nov 28,2007 03:37 PM UTC Nov 29,2007 09:43 AM UTC WinForms 1
Tags: GridControl
Shipra Gupta
Asked On November 28, 2007 03:37 PM UTC


I have a grouping grid with grouped columns. If the row is selected, the following statement to clear any existing grid selection raises an exception

// clear any existing grid selections

Exception Raised -
Syncfusion.Grouping.Element get_Item(Int32) - Specified argument was out of the range of valid values.

However, when there are no grouped columns defined, the statement to clear the selection (above) works fine! I am using Syncfusion Essential Suite

Is this a known issue?


Administrator [Syncfusion]
Replied On November 29, 2007 09:43 AM UTC

There were problems reported in TableControl.Selections.Clear back in July-August 2004. They were corrected. If you upgrade to a more recent release, the problem should not occur.

Just some things to try as a work around.

1) try setting grid.TableControl.CurrentCell.MoveTo(-1, -1) before you call Clear.

2) Instead of calling Clear, try this code:

while (this.gridGroupingControl1.TableControl.Selections.Count > 0)


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

or the page will be automatically redirected to 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