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

clear data

How to clear all data from dataBoundGrid?
I don't want to see any empty rows and any empty columns? Just grid.

1 Reply

SD Sarathi D Syncfusion Team September 6, 2007 12:26 AM UTC

Hi Hrvoje,

Thank you for posting your query to us.


You can try these code snippet to clear the grid :

this.gridDataBoundGrid1.BeginUpdate();
this.gridDataBoundGrid1.DataSource=null;
this.gridDataBoundGrid1.Binder.InternalColumns.Clear();
this.gridDataBoundGrid1.EndUpdate();
this.gridDataBoundGrid1.Refresh();


Please refer to the attached sample for implementation and let me know if this helps.

http://www.syncfusion.com/Support/user/uploads/ClearData_1014ac80.zip

Best regards,
Sarathi


Loader.
Live Chat Icon For mobile
Up arrow icon