aspnet-devexpress-dot-web-c2f20d9b.md
Represents a command column.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class GridViewCommandColumn :
GridViewColumn,
IWebGridCommandItemsOwner
Public Class GridViewCommandColumn
Inherits GridViewColumn
Implements IWebGridCommandItemsOwner
The following members return GridViewCommandColumn objects:
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:
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 ASPxGridBase.KeyFieldName property should be specified when using the following grid features:
<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>
function grid_CustomButtonClick(s, e) {
if (e.buttonID != 'ShowNewWindow') return;
rowVisibleIndex = e.visibleIndex;
s.GetRowValues(e.visibleIndex, 'ID', ShowPopup);
}
}
function ShowWindow(Id) {
// your code
}
Object StateManager CollectionItem WebColumnBase GridViewColumn GridViewCommandColumn BootstrapGridViewCommandColumn
See Also