0

Syncfusion の WPF グリッドでフィルター (ヘッダー行でのファンネル フィルタリング) を永続化する必要があります。

現在のフィルター設定を読み取って保持できるようにするにはどうすればよいでしょうか? これらのフィルターをプログラムで復元するにはどうすればよいでしょうか?

それは可能ですか?

ありがとう、トム

4

1 に答える 1

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
于 2013-05-09T05:16:45.487 に答える