Gets the value list filter.
Namespace: Dapfor.Wpf.FiltersAssembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)
Syntax
C# |
---|
public static DataTemplate ValueListFilter { get; } |
Visual Basic |
---|
Public Shared ReadOnly Property ValueListFilter As DataTemplate Get |
Visual C++ |
---|
public: static property DataTemplate^ ValueListFilter { DataTemplate^ get (); } |
F# |
---|
static member ValueListFilter : DataTemplate with get |
Property Value
Type: DataTemplateThe value list filter.
Remarks
The filter displays a lits of values discovered in grid cells in the specified column. Users can choose a value from the proposed list. To cancel filtering you can click a crossed filter icon in the upper left corner or choose <All>.
This filter can be set for a column directly in xaml code:
Copy | |
---|---|
<Window x:Class="SomeApplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" xmlns:my="clr-namespace:Dapfor.Wpf.Controls;assembly=Dapfor.Wpf" xmlns:filters="clr-namespace:Dapfor.Wpf.Filters;assembly=Dapfor.Wpf"> <my:GridControl> <my:GridControl.Headers> <my:Header> <my:Header.Columns> <my:Column Id="idMyColumn" Title="MyColumn" FilterTemplate="{x:Static filters:FilterFactory.ValueListFilter}" FilterAlignment="Stretch"/> </my:Header.Columns> </my:Header> </my:GridControl.Headers> </my:GridControl> </Window> |
It's also possible to set the filter programmatically:
Copy | |
---|---|
Column column = gridControl1.Headers[0]["idMyColumn"]; column.FilterTemplate = FilterFactory.ValueListFilter; |