Reset workbook (All worksheets)

To reset the entire workbook, removing all worksheets and creating a single empty worksheet, use the Reset method of the control.

reoGridControl.Reset();

Reset worksheet

To reset a specified worksheet, use the Reset method of that worksheet.

reoGridControl.CurrentWorksheet.Reset();

Reset worksheet to specified rows and columns

To reset a worksheet to a specified number of rows and columns, use the Reset method and pass the desired row and column counts as arguments.

// number of rows is 1000, and number of columns is 200
sheet.Reset(1000, 200);
Was this article helpful?