DialogEditFormBehavior.ValidateRow Event
Occurs after a user saves changes made in the dialog edit form. This event allows you to validate values, check database constraints, and save changes to the database.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.Extensions.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Event Data
The ValidateRow event's data class is EditFormRowValidationArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
CancellationToken | Gets a token that allows you to respond to a task cancellation request invoked by the GridControl. |
EditOperationContext | Gets the edit operation’s data context. |
IsNewItem | Gets whether the dialog edit form was invoked to add a new item to the GridControl. |
Item | Gets the processed data record. |
ValidateAsync | Gets or sets the task that validates changes and posts them to the data source. |
Remarks
After a user saves changes made in the dialog edit form, the behavior raises the ValidateRow event and executes the ValidateRowCommand.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ValidateRow event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.