Back to Devexpress

ASPxVerticalGrid.RecordInserted Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-5d65250c.md

latest3.2 KB
Original Source

ASPxVerticalGrid.RecordInserted Event

Fires after a new record has been added to the ASPxVerticalGrid.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxDataInsertedEventHandler RecordInserted
vb
Public Event RecordInserted As ASPxDataInsertedEventHandler

Event Data

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

PropertyDescription
AffectedRecordsGets the number of records affected by the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
ExceptionGets the exception (if any) that was raised during the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
ExceptionHandledGets or sets whether an exception raised during the update operation was handled in the event handler. Inherited from ASPxDataBaseUpdatedEventArgs.
NewValuesGets a dictionary that contains the values of the non-key field name/value pairs in the row to be inserted.

Remarks

End-users can create new records by clicking the New command. To save the newly created record, end-users must click the Update command. To create records in code, use the ASPxClientVerticalGrid.AddNewRecord method.

To cancel the insert operation, handle the ASPxVerticalGrid.RecordInserting event.

Note

The RecordInserted event fires even though an exception occurs during the data update operation. Use the ASPxDataBaseUpdatedEventArgs.Exception and ASPxDataBaseUpdatedEventArgs.ExceptionHandled argument properties to determine whether or not any exception occurs during the corresponding action, and handle it if you wish.

See Also

RecordInserting

Vertical Grid

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace