GridViewCommandColumn.ShowSelectButton Property
Specifies whether the Select command button is displayed in the command column.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **false** | true, if the button is visible; otherwise, false. |
Remarks
Use the ShowSelectButton property to specify whether the Select button is visible in the command column. To customize the button’s settings use the ASPxGridViewCommandButtonSettings.SelectButton property.
Declaratively:
<dx:ASPxGridView ID="ASPxGridView1" runat="server" >
<Columns>
<dx:GridViewCommandColumn ShowSelectButton="True" />
...
</Columns>
</dx:ASPxGridView>
In code:
using DevExpress.Web;
...
protected void Page_Load(object sender, EventArgs e) {
ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
GridViewCommandColumn commandColumn = new GridViewCommandColumn();
commandColumn.ShowSelectButton = true;
grid1.Columns.Add(commandColumn);
...
}
See Also