GridViewCommandColumn Class
Represents a command column.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public class GridViewCommandColumn :
GridViewColumn,
IWebGridCommandItemsOwner
#Related API Members
The following members return GridViewCommandColumn objects:
Library | Related API Members |
---|---|
ASP. |
ASPx |
ASPx |
|
ASPx |
|
Grid |
|
XAF: Cross-Platform .NET App UI & Web API | ASPx |
#Remarks
A command column provides a set of commands that allow end-users to switch the ASPxGridView to edit mode, update data, delete rows, etc. A single command is represented by a command item.
There are seven command items:
- New (ASPxGridViewCommandButtonSettings.NewButton)
- Edit (ASPxGridViewCommandButtonSettings.EditButton)
- Delete (ASPxGridViewCommandButtonSettings.DeleteButton)
- Select (ASPxGridViewCommandButtonSettings.SelectButton, GridViewCommandColumn.ShowSelectCheckbox)
- Update (ASPxGridViewCommandButtonSettings.UpdateButton)
- Cancel (ASPxGridViewCommandButtonSettings.CancelButton)
- Clear (ASPxGridViewCommandButtonSettings.ClearFilterButton)
A command column allows multiple command items to be displayed within a cell.
By default, a command item is represented by a link. It can also be represented by a button or image. Use the GridViewCommandColumn.ButtonRenderMode property to specify how the command column renders its command items.
Note
The ASPx
- data editing;
- adding new and deleting existing row;
- selecting row;
- master-detail view;
- endless paging.
#Example
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="gridView">
<ClientSideEvents CustomButtonClick="grid_CustomButtonClick" />
<Columns>
<dx:GridViewCommandColumn VisibleIndex="0" Width="100px">
<CustomButtons>
<dx:GridViewCommandColumnCustomButton Text="Show New Window" ID="ShowNewWindow">
</dx:GridViewCommandColumnCustomButton>
</CustomButtons>
</dx:GridViewCommandColumn>
...
</Columns>
</dx:ASPxGridView>