Back to Devexpress

VerticalGridCommandRow.ShowNewButtonInHeader Property

aspnet-devexpress-dot-web-dot-verticalgridcommandrow-cbdb2cf2.md

latest2.0 KB
Original Source

VerticalGridCommandRow.ShowNewButtonInHeader Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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.
aspx
<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

VerticalGridCommandRow Class

VerticalGridCommandRow Members

DevExpress.Web Namespace