Back to Devexpress

ASPxGridView.CancelRowEditing Event

aspnet-devexpress-dot-web-dot-aspxgridview-ee92f114.md

latest2.1 KB
Original Source

ASPxGridView.CancelRowEditing Event

Enables you to prevent changes made within a row from being discarded.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxStartRowEditingEventHandler CancelRowEditing
vb
Public Event CancelRowEditing As ASPxStartRowEditingEventHandler

Event Data

The CancelRowEditing event's data class is ASPxStartRowEditingEventArgs. 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.
EditingKeyValueGets the processed row’s key value.

Remarks

The CancelRowEditing event is raised in the cases listed below:

The CancelRowEditing event enables you to prevent the ASPxGridView from being switched to browse mode. To do this, set the event parameter’s Cancel property to true.

See Also

StartEditRow(visibleIndex)

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace