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 Save and Reload the filters in SfDataGrid?

SfDataGrid allows you to save and load the grid settings using the SfDataGrid.Serialize and SfDataGrid.Deserialize methods. You can customize this process by passing SerializationOptions and DeserializationOptions as parameters to these methods. SerializationOptions and DeserializationOptions contains a set of properties that is used to customize the serialization/deserialization process.

You can enable or disable the serialization of filters in SfDataGrid by setting SerializationOptions.SerializeFiltering property as illustrated in the following code example.

Serialization in WPF platform

C#

Serialization in Silverlight platform

C#

Serialization in WinRT platform

C#

In the same way, you can enable or disable deserialization of serialized filters to SfDataGrid by setting DeserializationOptions.DeserializeFiltering property as illustrated in the following code example.

Deserialization in WPF platform

C#

Deserialization in Silverlight platform

C#

Deserialization in WinRT platform

C#

 

You can refer to the sample from the following location.

WPF

WRT

SilverLight

UWP

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
3194 01/12/2015 02/05/2016 WinRT SfDataGrid 4.5 12.4.0.24
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.