Skip to main content
Tab

VerticalGridCommandRow.ShowNewButtonInHeader Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue(false)]
public bool ShowNewButtonInHeader { 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 header:

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

To specify the button settings, use the NewButton property.

See Also