Syncfusion の WPF グリッドでフィルター (ヘッダー行でのファンネル フィルタリング) を永続化する必要があります。
現在のフィルター設定を読み取って保持できるようにするにはどうすればよいでしょうか? これらのフィルターをプログラムで復元するにはどうすればよいでしょうか?
それは可能ですか?
ありがとう、トム
Syncfusion の 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