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.
Up arrow icon