AD
Administrator
Syncfusion Team
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.gridGroupingControl1.TableControl.Selections.Remove(this.gridGroupingControl1.TableControl.Selections.Ranges[0]);
}