'Declaration Public Property AllowAutoFilter As Boolean
'Usage Dim instance As ColumnManagerRow Dim value As Boolean instance.AllowAutoFilter = value value = instance.AllowAutoFilter
public bool AllowAutoFilter {get; set;}
'Declaration Public Property AllowAutoFilter As Boolean
'Usage Dim instance As ColumnManagerRow Dim value As Boolean instance.AllowAutoFilter = value value = instance.AllowAutoFilter
public bool AllowAutoFilter {get; set;}
If set to false, column-manager cells will not display the glyph that allows the drop-down ListBox to be opened.
<Grid> <Grid.Resources> <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" Source="{Binding Source={x:Static Application.Current}, Path=Orders}" AutoFilterMode="And" DefaultCalculateDistinctValues="False"> <xcdg:DataGridCollectionViewSource.ItemProperties> <xcdg:DataGridItemProperty Name="ShipCountry" Title="Country" CalculateDistinctValues="True"/> <xcdg:DataGridItemProperty Name="ShipCity" Title="City"/> <xcdg:DataGridItemProperty Name="ShipAddress" Title="Address" /> <xcdg:DataGridItemProperty Name="ShipPostalCode" Title="Postal Code"/> <xcdg:DataGridItemProperty Name="ShipName" Title="Name"/> <xcdg:DataGridItemProperty Name="OrderDate" Title="Order Date"/> <xcdg:DataGridItemProperty Name="Freight"/> </xcdg:DataGridCollectionViewSource.ItemProperties> </xcdg:DataGridCollectionViewSource> </Grid.Resources> <DockPanel> <StackPanel Orientation="Horizontal" DockPanel.Dock="Top"> <xcdg:AutoFilterControl x:Name="ShipCountryAutoFilterControl" AutoFilterColumn="{Binding ElementName=OrdersGrid, Path=Columns[ShipCountry]}" AutoFilterContext="{Binding ElementName=OrdersGrid, Path=DataGridContext}"> <xcdg:AutoFilterControl.Template> <ControlTemplate TargetType="{x:Type xcdg:AutoFilterControl}"> <ComboBox x:Name="PART_DistinctValuesHost" Width="125" /> </ControlTemplate> </xcdg:AutoFilterControl.Template> </xcdg:AutoFilterControl> <Button Content="Clear Filter" Command="xcdg:AutoFilterControl.ClearAutoFilterValues" CommandTarget="{Binding ElementName=ShipCountryAutoFilterControl}"/> </StackPanel> <xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}"> <xcdg:DataGridControl.View> <xcdg:TableView UseDefaultHeadersFooters="False"> <xcdg:TableView.FixedHeaders> <DataTemplate> <xcdg:GroupByControl /> </DataTemplate> <DataTemplate> <xcdg:ColumnManagerRow AllowAutoFilter="False" /> </DataTemplate> </xcdg:TableView.FixedHeaders> </xcdg:TableView> </xcdg:DataGridControl.View> </xcdg:DataGridControl> </DockPanel> </Grid>