Skip to main content
Tab

ASPxVerticalGrid.RecordInserting Event

Enables you to cancel adding a new record.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public event ASPxDataInsertingEventHandler RecordInserting

Event Data

The RecordInserting event's data class is ASPxDataInsertingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewValues Gets a dictionary that contains the new field name/value pairs for the row to be inserted.

Remarks

The RecordInserting event occurs when an end-user tries to save the newly created record by clicking the Update command. To cancel the insert operation, set the event parameter’s Cancel property to true.

To create a new record, click the New command or call the ASPxClientVerticalGrid.AddNewRecord method.

After a new record has been added to the ASPxVerticalGrid, the ASPxVerticalGrid.RecordInserted event is raised.

See Also