2013-04-18 69 views

回答

0
You can get the Filters for particular column by using the following code snippet. 

Code snippet[C#]: 

var Filters = this.SyncGrid.VisibleColumns["CustomerID"].Filters; 


And also you can add the Filters for particular column by using the following code snippet. 

Code Snippet[C#]: 
this.SyncGrid.VisibleColumns["CustomerID"].Filters.Add(new Syncfusion.Windows.Data.FilterPredicate() 
{ 
    FilterValue = 2, 
    PredicateType = Syncfusion.Windows.Data.PredicateType.Or, 
    FilterBehavior = Syncfusion.Linq.FilterBehavior.StringTyped, 
    FilterType = Syncfusion.Linq.FilterType.Equals 
}); 


Note: Here CustomerID is the MappingName of GridDataVisibleColumn