AD
Administrator
Syncfusion Team
March 11, 2004 08:39 AM UTC
If you want to use range.GetFirstCell and range.GetNextCell to interate through a range, then the range must have RangeType Cells. You can get your code to work like this:
foreach(GridRangeInfo range1 in _grid.Selections.Ranges)
{
GridRangeInfo range = range1.ExpandRange(1, 1, _grid.RowCount, _grid.ColCount);
//..... continue with your code...