Gets the CheckBox filter.

Namespace: Dapfor.Wpf.Filters
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

Syntax

C#
public static DataTemplate CheckBoxFilter { get; }
Visual Basic
Public Shared ReadOnly Property CheckBoxFilter As DataTemplate
	Get
Visual C++
public:
static property DataTemplate^ CheckBoxFilter {
	DataTemplate^ get ();
}
F#
static member CheckBoxFilter : DataTemplate with get

Property Value

Type: DataTemplate
The CheckBox filter.

Remarks

The filter displays a lits of values discovered in grid cells in the specified column. Users can choose one or several values from the proposed list. To cancel a filter for this column you may click the crossed filter icon in the upper left corner.

This filter can be set for a column directly in xaml code:

 Copy imageCopy
<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.CheckBoxFilter}" FilterAlignment="Stretch"/>
               </my:Header.Columns>
           </my:Header>
       </my:GridControl.Headers>
   </my:GridControl>
</Window>

It's also possible to set the filter programmatically:

 Copy imageCopy
Column column = gridControl1.Headers[0]["idMyColumn"];
column.FilterTemplate = FilterFactory.CheckBoxFilter;

See Also