Back to Devexpress

GridViewCommandColumn.ShowUpdateButton Property

aspnet-devexpress-dot-web-dot-gridviewcommandcolumn-30dd4988.md

latest2.2 KB
Original Source

GridViewCommandColumn.ShowUpdateButton Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool ShowUpdateButton { get; set; }
vb
<DefaultValue(False)>
Public Property ShowUpdateButton As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, if the button is visible; otherwise, false.

|

Remarks

Use the ShowUpdateButton property to specify whether the Update button is visible in the command column. The button settings can be customized using the ASPxGridViewCommandButtonSettings.UpdateButton property.

In markup:

aspx
<dx:ASPxGridView ID="ASPxGridView1" runat="server" >
    <Columns>  
        <dx:GridViewCommandColumn ShowUpdateButton="True" />  
        ...
    </Columns>  
</dx:ASPxGridView>

In code:

csharp
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.ShowUpdateButton = true;
    grid1.Columns.Add(commandColumn);
    ...
}

See Also

Grid View

GridViewCommandColumn Class

GridViewCommandColumn Members

DevExpress.Web Namespace