ValidateRowEventArgs.Valid Property
Gets or sets whether the row validation succeeds.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true to accept row cell values; otherwise, false. |
#Remarks
If the row contains values that do not meet your criteria, set the Valid property to false. In this case, the View will display an error message box. The message box enables end-users to keep focus within the row so that its values can be corrected. Another option available is to allow the focus to switch to a different row thus discarding changes made to row cells.
Note that setting the Valid property to false raises the ColumnView.InvalidRowException event. The event can be handled to override the behavior described above.
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Valid property.
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.