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.

How to clear a gridcontrol ?

Thread ID:

Created:

Updated:

Platform:

Replies:

89794 Sep 7,2009 05:31 AM Sep 9,2009 01:44 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Puthirak OM
Asked On September 7, 2009 05:31 AM

Hi,

How can i clear a GridControl object ?
i.e. i want to reset a GridControl object to it's initial state
(the state when it was first allocated).

I'm using SyncFusion Essential Studio WPF 7.3.0.20

Thanks.

P.OM
Reportive SA

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On September 9, 2009 01:44 AM

Hi Puthirak,

Thanks for using Syncfusion products. There are two modes of usage with the Grid Control,

1) Using QueryCellInfo, this would load the data virtually, for resetting this, you just have to set the Model.RowCount & Model.ColumnCount values.

2) Static population of styles, if the GridStyleInfo objects are populated for the whole grid, then you should simply clear them,

this.Model.VolatileCellStyles.Clear();
this.Model.Data.Clear();

Finally, in both these methods you should force the grid to invalidate by calling, Model.InvalidateVisual(true).

Please let me know if this helps you out.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,

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.

;