We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon