| Visual Basic (Declaration) | |
|---|---|
Public Property AllowAutoFilter As Boolean | |
| C# | |
|---|---|
public bool AllowAutoFilter {get; set;} | |
Return Value
true if the end user can modify the values; false otherwise. By default, true.All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to use a ComboBox as an auto-filter control to automatically filter the content of the ShipCountry column. ComboBox controls do not support multiple selections; therefore, the values of the target column will only be filtered by 1 value.
Since, by default, the auto-filter control in the column-manager-cell drop downs support multiple selections, it is recommended to deactivate the drop down by setting the AllowAutoFilter property of the ColumnManagerRow to false to hide the column-manager cells' auto-filter controls and prevent unexpected synchronization behavior between the controls that have the same auto-filter target column or different selection modes.
| XAML | Copy Code |
|---|---|
<Grid> | |
If set to false, column-manager cells will not display the glyph that allows the drop-down ListBox to be opened.
It is recommended to deactivate the column-manager cells' auto-filter drop downs by setting the AllowAutoFilter property of the ColumnManagerRow to false to hide the column-manager cells' auto-filter control and prevent unexpected synchronization behavior between controls that have the same auto-filter target column or different selection modes.
Supported Frameworks: Microsoft .NET Framework version 3.5
Copy Code