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

Toolbar

  • New
  • Edit
  • Delete
  • Refresh
  • Export to
    v
  • +
  •  
    ...
First Name 
Last Name 
Title 
Birth Date 
Hire Date 
NancyDavolioSales Representative12/8/19705/1/2014
AndrewFullerVice President, Sales2/19/19748/14/2014
JanetLeverlingSales Representative8/30/19854/1/2014
MargaretPeacockSales Representative9/19/19595/3/2015
StevenBuchananSales Manager3/4/197710/17/2015
MichaelSuyamaSales Representative7/2/198510/17/2015
RobertKingSales Representative5/29/19821/2/2016
LauraCallahanInside Sales Coordinator1/9/19803/5/2016
AnneDodsworthSales Representative1/27/198811/15/2016

The DevExpress ASP.NET Grid View (ASPxGridView) enables you to group the most important or frequently used grid commands, and expose them through customizable toolbars for efficient end-user access.

The ASPxGridView stores toolbars (which are GridViewToolbar class instances) in its Toolbars collection. You can add or remove toolbars, change their availability and position (Visible, Enabled, Position), and populate them with toolbar items (GridViewToolbarItem class instances) using the Items property. Toolbar items can trigger standard grid commands (that is, data item editing, deletion, creation, etc.) and any custom actions, if required.

  • Standard Toolbar Items
    To make a toolbar item execute a standard command, set the item's Command property to the desired command name listed by the GridViewToolbarCommand enumeration. A standard toolbar item automatically displays the command-related text and image (optional). Clicking a standard toolbar item executes the corresponding grid command.
  • Custom Toolbar Items
    If you need to perform a custom action, set a toolbar item's Command property to the Custom value (the default setting), specify a custom command name through the item's Name property and define item characteristics (such as text, image, etc.). Then handle the server ToolbarItemClick event or client ToolbarItemClick event (or both) to identify the triggered custom command by its name and execute the required action.

Note that toolbar items expose the Items property allowing you to create hierarchies of nested toolbar items of unlimited depth.

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
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxGridViewDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxGridViewDemos