Skip to main content

Vertical Grid Header Filter

  • 2 minutes to read

The ASPxVerticalGrid control implements a row header filter that displays a dropdown list of all unique values within a row.

The following properties specify the filter button’s availability:

Controls visibility of every row’s filter button.
Controls visibility of a specific row’s filter button.

Users can enter text in the filter editor above the list to filter list items. To hide the filter editor, set the ShowHeaderFilterListBoxSearchUI property to false.

When you apply a filter to a row, the other header filters display values that relate to the specified filter criteria. Hold down Shift and click the header filter button to show the full list of values.

Header Filter Modes

Use the Mode property to specify a column’s filter mode. You can set the following filter modes for a grid data column.

The header filter is displayed as a regular list of filter items. Clicking an item invokes a corresponding action and automatically closes the dropdown.
The header filter is displayed as a checked list of filter items. In this mode, an end-user can select more than one item simultaneously. When the dropdown window is closed by clicking the OK button, the grid will display those records that contain the checked values.
(For date columns only). The header filter displays a calendar and a set of predefined items. Use the SettingsHeaderFilter.DateRangeCalendarSettings property to customize the calendar settings.
(For date columns only). The header filter displays a date range picker and a set of predefined items. Use the SettingsHeaderFilter.DateRangePickerSettings property to customize the editor settings.
(For numeric columns only). The header filter displays two spin editors and a track bar. Use the NumericRangeSpinEditSettings and NumericRangeTrackBarSettings properties to customize settings of the spin editors and track bar.

Custom Header Filter Items

The ASPxVerticalGrid control allows you to create custom filter values, define their filter criteria, and display these values within a row’s drop-down filter.

You can handle the following events to customize the header filter items.

Allows you to populate the header filter dropdown with custom items instead of default items.
Allows you to add custom header filter items to default items.
See Also