Skip to main content

VerticalGridCommandRow.ShowNewButtonInHeader Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public bool ShowNewButtonInHeader { get; set; }

Property Value

Type Default Description
Boolean false

true if the button is visible; otherwise, false.


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" ...>
        <dx:VerticalGridCommandRow ShowNewButtonInHeader="true" />
        <!-- ... -->
    <SettingsEditing Mode="Batch" />

To specify the button settings, use the NewButton property.

See Also