Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Header Filter

Company Name Not filtered
Country Not filtered
City Not filtered
Unit Price Not filtered
Quantity Not filtered
Discount Not filtered
Total Not filtered
Blondesddsl père et filsFranceStrasbourg$31.20300%$936.00
Blondesddsl père et filsFranceStrasbourg$12.00200%$240.00
Morgenstern GesundkostGermanyLeipzig$36.40200%$728.00
Morgenstern GesundkostGermanyLeipzig$39.40120%$472.80
Berglunds snabbköpSwedenLuleå$3.60120%$43.20
Berglunds snabbköpSwedenLuleå$19.20200%$384.00
Berglunds snabbköpSwedenLuleå$6.20300%$186.00
Vins et alcools ChevalierFranceReims$30.4040%$121.60
Magazzini Alimentari RiunitiItalyBergamo$13.60300%$408.00
Magazzini Alimentari RiunitiItalyBergamo$10.00200%$200.00
Page 1 of 216 (2155 items)Prev1234567214215216Next


The DevExpress ASP.NET MVC GridView implements a column header filter that displays a dropdown list of all unique values within a column. Set the ShowHeaderFilterButton to true to show header filter buttons for each data column. You can use the AllowHeaderFilter property to control the button visibility for a particular data column.

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.

A column’s Mode property specifies the filter mode. You can set the following filter modes for each grid data column.

  • List – the dropdown window displays a regular list of items that allows users to select a single value.
  • CheckedList – the dropdown window displays a check box list that allows users to select multiple values.

Additionally, the grid control implements filter modes for specific column data types: DateRangeCalendar and DateRangePicker modes available for date columns; NumericRangePicker mode available for numeric columns. You can try these modes in the Range Header Filter demo.

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

In this demo, the header filters of the Total and Quantity columns contain custom items.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos