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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to clear a gridcontrol ?

Thread ID:





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


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


Reportive SA

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

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,


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.

Grid.WPF Team
Syncfusion Inc.,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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