Skip to main content
Tab

VerticalGridCommandRow.ShowNewButton Property

Specifies the visibility of the New command button in the command row.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Boolean false

true if the button is visible; otherwise, false.

Remarks

Follow the steps below to allow the grid to display the New command button in the command row:

  1. Set the Mode property to Batch.
  2. Enable the ShowNewButton property.
<dx:ASPxVerticalGrid ID="VerticalGrid" runat="server" KeyFieldName="ProductID" ...>
    <Rows>
        <dx:VerticalGridCommandRow ShowNewButton="true" />
        <!-- ... -->
    </Rows>
    <SettingsEditing Mode="Batch" />
</dx:ASPxVerticalGrid>

To specify the button settings, use the NewButton property.

See Also