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.
Unfortunately, activation email could not send to your email. Please try again.

clear data

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 5, 2007 08:26 PM

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.

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.

;