Skip to main content
Tab

ASPxGridViewCommandButtonSettings.NewButton Property

Gets the New command button‘s settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public GridViewCommandButtonSettings NewButton { get; }

Property Value

Type Description
GridViewCommandButtonSettings

A GridViewCommandButtonSettings object that specifies the button’s settings.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to NewButton
ASP.NET MVC Extensions GridViewSettings
.SettingsCommandButton .NewButton
MVCxGridViewProperties
.SettingsCommandButton .NewButton
ASP.NET Web Forms Controls ASPxGridView
.SettingsCommandButton .NewButton
GridViewProperties
.SettingsCommandButton .NewButton

Remarks

The New button creates a new data row. Use the NewButton property to specify the button’s image, caption and type. The button’s visibility in a column is specified by the GridViewCommandColumn.ShowNewButton property. The New button can be displayed in a command column header if the GridViewCommandColumn.ShowNewButtonInHeader property is set to true.

Note

Specify the ASPxGridBase.KeyFieldName property when you add a new and delete an existing grid row.

See Also