Hi Julie,
Thank you for your interest in Syncfusion products.
While removing the rows using RemoveRange() method, the current cell renderer cannot get refreshed and notifies the old indexes. Hence, we can make use of MoveTo() method after removing the range to force the current cell to refresh.
Here is the code snippet regarding this,
this.gridControl1.Rows.RemoveRange(0, this.gridControl1.RowCount);
if (this.gridControl1.RowCount == 0)
{
this.gridControl1.CurrentCell.MoveTo(0, 0, GridSetCurrentCellOptions.SetFocus); //refresh the current cell
}
Please refer the following sample which illustrates the above.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=F946821951706273.zipPlease let me know if you have any further concerns.
Regards,
Christopher K.