Back to Devexpress

ASPxVerticalGrid.RecordDeleting Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-4e089a28.md

latest2.1 KB
Original Source

ASPxVerticalGrid.RecordDeleting Event

Enables you to prevent a record from being deleted.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxDataDeletingEventHandler RecordDeleting
vb
Public Event RecordDeleting As ASPxDataDeletingEventHandler

Event Data

The RecordDeleting event's data class is ASPxDataDeletingEventArgs. 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.
KeysGets a dictionary of field name/value pairs that represent the primary key of the row to delete.
ValuesGets a dictionary of the non-key field name/value pairs for the row to delete.

Remarks

The RecordDeleting event occurs when an end-user has clicked the Delete command. To cancel the delete operation, set the event parameter’s Cancel property to true.

After a record has been deleted, the ASPxVerticalGrid.RecordDeleted event is raised.

See Also

Vertical Grid

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace