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

Resetting a GridDataControl, Part III

Thread ID:





106630 Jan 18,2013 07:45 PM UTC Feb 5,2013 04:29 AM UTC WPF 1
Tags: GridControl
Will Rogers
Asked On January 18, 2013 07:45 PM UTC

I am using the version of SyncFusion.Grid.WPF.dll in Visual Studio 2012 in a .Net 4.0 project on Windows 7 Pro.

This is part of my long saga attempting to reset the grid to it's original state with regards to grouping, column ordering, filtering, and sorting. When the GridDataControl.Loaded event fires, I want these aspects of the grid to return to their original state if the ItemsSource has changed. This doesn't seem like an unreasonable requirement, but I've been unable to do it thus far. I'm at the point where I'm considering creating a new View with a new GridDataControl every time the user loads the View. To my way of thikinking, this is wasteful and should not be necessary. The grid (and parent View) should be re-usable and reset-able.

After running into problems do trying to clear things directly, I've fallen back to the Model.SerializeToStream() option. In doing so, I've run into the following XmlSerializer problem:

{"The type Syncfusion.Windows.Controls.Grid.GridDataPercentEditVisibleColumn was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."}

I've included a solution that demonstrates the issue; just double-click anywhere on the grid. If XML serialization, which is the preferred way to do a reset, is broken, I'm afraid I'm at a loss for how to proceed.


Rajasekar G [Syncfusion]
Replied On February 5, 2013 04:29 AM UTC

Hi  Will,

Sorry for the inconvenience caused.

We are able to reproduce the issue. Could you please create new incident for this query through Direct Trac system and we will update the status of this through


Direct Trac Link : https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any questions.


Raja sekar.G


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

or the page will be automatically redirected to 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