The following example demonstrates how to set advanced filter mode to Always, and how to disable advanced filtering on at least one column.
| XAML |
Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> <Grid.Resources> <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" Source="{Binding Source={x:Static Application.Current}, Path=Orders}" /> </Grid.Resources> <xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}"> <xcdg:DataGridControl.Columns> <xcdg:Column FieldName="ShipCountry" AllowAdvancedFilter="False" /> </xcdg:DataGridControl.Columns> <xcdg:DataGridControl.View> <xcdg:TableflowView AdvancedFilterMode="Always" /> </xcdg:DataGridControl.View> </xcdg:DataGridControl> </Grid> | |