Clearing records from a grid

Is there any calls within the grid that can be made to clear all the records, and their associated values in the dataset? Can this be done without accessing the dataset directly through the grid's DataSource property?

1 Reply

AD Administrator Syncfusion Team December 18, 2006 07:06 AM UTC

Hi Paul,

This can be achieved by iterating through the records and deleting them, please refer to the following code snippet for more details.

>>>>>>>>>>>>
foreach(Record r in this.gridGroupingControl1.Table.Records)
{
r.Delete();
}
>>>>>>>>>>>>

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

Loader.
Up arrow icon