The DevExpress ASP.NET MVC Grid View extension provides end-users with the capability to select all grid rows by using the Select All check box, which can be displayed in a grid header. The check box visibility and selection mode is defined by the SelectAllCheckboxMode property. This property can be set to the following values.
- None - the Select All check box is not displayed.
- Page - the Select All check box selects and deselects all rows on the current grid page.
- AllPages - the Select All check box selects and deselects all grid rows (on all grid pages).
In this demo the title panel is templated. When the SelectAllCheckboxMode property is set to Page, hyperlinks within the template allow end-users to select and deselect all grid rows. For this purpose, the client-side SelectRows and UnselectRows methods are used.
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).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos