0
我们需要在Syncfusion的WPF网格中保留筛选器(在标题行上进行漏斗过滤)。从Syncfusion ExtendedGrid获取WPF筛选器值
如何读取当前的过滤器设置,以便我们可以坚持下去?以什么方式来以编程方式恢复这些过滤器?
这可能吗?
感谢, 汤姆
我们需要在Syncfusion的WPF网格中保留筛选器(在标题行上进行漏斗过滤)。从Syncfusion ExtendedGrid获取WPF筛选器值
如何读取当前的过滤器设置,以便我们可以坚持下去?以什么方式来以编程方式恢复这些过滤器?
这可能吗?
感谢, 汤姆
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