Back to Devexpress

ASPxVerticalGrid.RecordInserting Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-383107fb.md

latest2.4 KB
Original Source

ASPxVerticalGrid.RecordInserting Event

Enables you to cancel adding a new record.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxDataInsertingEventHandler RecordInserting
vb
Public Event RecordInserting As ASPxDataInsertingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewValuesGets 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

RecordInserted

Vertical Grid

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace