Skip to main content

ASPxClientVerticalGrid.AddNewRecord Method

Adds a new record.

Declaration

AddNewRecord(): void

Remarks

The AddNewRecord method switches the ASPxVerticalGrid to batch edit mode and allows the values of the new record to be edited. To add the new record to the underlying datasource, call the ASPxClientVerticalGrid.UpdateEdit method. End-users can save the changes made using the Update command.

To initialize record values in code, handle the ASPxVerticalGrid.InitNewRecord event.

The ASPxGridBase.KeyFieldName property must be specified to enable adding new records.

See Also