Clearing All rows in the GridControl

Hello: How can I clear all the rows in a gridcontrol? Raj.

1 Reply

AD Administrator Syncfusion Team July 26, 2005 10:22 AM UTC

If you want to remove all rows, you can set grid.RowCount = 0. If you want to clear the contents but leave the rows, then you can use grid.ClearCells, passing in GridRangeInfo.Table() for the range.

Loader.
Up arrow icon