Skip to main content
A newer version of this page is available. .
Tab

GridViewCommandColumn.ShowSelectButton Property

Specifies whether the Select command button is displayed in the command column.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public bool ShowSelectButton { get; set; }

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