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 change the SfDataGrid current filters externally by code

Thread ID:





128282 Jan 12,2017 10:03 AM UTC Jan 13,2017 11:40 AM UTC WPF 1
Tags: SfDataGrid
Asked On January 12, 2017 10:03 AM UTC


I have some form where I'd like to insert my own controls to let user filter the data in the SfDataGrid.
Is it possible, using code, to set your filter data programmatically?
If yes, can you provide me an example ?

Sivakumar R [Syncfusion]
Replied On January 13, 2017 11:40 AM UTC

Hi Silvio, 
Yes, you can programmatically filter SfDataGrid in below two ways, 
View Filtering 
Please refer below documentation link which explains about how to filter by setting SfDataGrid.View.Filter property. 
Column Filter predicates 
Please refer the below documentation link which explains about how to filter by adding FilterPredicate to GridColumn.FilterPredicates property. 
You can refer below articles, if you want to customize the built-in filter UI or functionality. 


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