Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Custom Command Buttons

# 
First Name 
Last Name 
Birth Date 
Title 
Hire Date 
Edit New CloneNancyDavolio12/8/1970Sales Representative5/1/2014
Edit New CloneAndrewFuller2/19/1974Vice President, Sales8/14/2014
Edit New CloneJanetLeverling8/30/1985Sales Representative4/1/2014
Edit New CloneMargaretPeacock9/19/1959Sales Representative5/3/2015
Edit New CloneStevenBuchanan3/4/1977Sales Manager10/17/2015
Edit New CloneMichaelSuyama7/2/1985Sales Representative10/17/2015
Edit New CloneRobertKing5/29/1982Sales Representative1/2/2016
Edit New CloneLauraCallahan1/9/1980Inside Sales Coordinator3/5/2016
Edit New CloneAnneDodsworth1/27/1988Sales Representative11/15/2016

The DevExpress ASP.NET Grid View (ASPxGridView) supports Command columns, which in turn display custom buttons within individual command cells, the filter row, etc. You can create your own custom buttons and define custom actions for them.

A command column maintains custom buttons within the CustomButtons collection. Each button has a unique identifier (ID). Buttons can display an image or text.

To define an action for a custom button, handle the ASPxGridView’s CustomButtonCallback event. This event is raised after a custom button has been clicked by the end-user. Use the event parameter’s buttonID property to identify the button currently being clicked.

This demo describes how to create and display custom command buttons within the ASPxGridView. A custom command button ('Clone') and standard command buttons ('Edit', 'New', 'Update', 'Cancel') are used. All command buttons are represented by custom images that are able to display tooltips. Tooltips are defined via the Image.Tooltip property of the command button.