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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

clear data

Thread ID:

Created:

Updated:

Platform:

Replies:

67951 Sep 5,2007 01:13 PM UTC Sep 6,2007 12:26 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Hrvoje Voda
Asked On September 5, 2007 01:13 PM UTC

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

Sarathi D [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;