Gets the date multi 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 DateMultiFilter { get; }
Visual Basic
Public Shared ReadOnly Property DateMultiFilter As DataTemplate
	Get
Visual C++
public:
static property DataTemplate^ DateMultiFilter {
	DataTemplate^ get ();
}
F#
static member DateMultiFilter : DataTemplate with get

Property Value

Type: DataTemplate
The date multi filter.

Remarks

The filter can be used to filter rows by set dates. You can set multiple conditions.

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.DateMultiFilter}" 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.DateMultiFilter;

See Also