Back to Devexpress

ValidateRowEventArgs Class

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-c47a71f6.md

latest2.5 KB
Original Source

ValidateRowEventArgs Class

Provides data for the ColumnView.ValidateRow event.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public class ValidateRowEventArgs :
    RowObjectEventArgs
vb
Public Class ValidateRowEventArgs
    Inherits RowObjectEventArgs

ValidateRowEventArgs is the data class for the following events:

Remarks

The ColumnView.ValidateRow event fires when attempting to move row focus. It enables you to specify whether the currently focused row data is valid and, thus, whether focus movement is allowed.

To determine whether the currently focused row data is valid, you will need to access this row’s cell values. Thus, the ValidateRowEventArgs class enables you to identify the processed row using the inherited RowEventArgs.RowHandle property. The class introduces the ValidateRowEventArgs.Valid and ValidateRowEventArgs.ErrorText properties specifying whether row data is valid and the text is displayed within an error message box.

Inheritance

Object EventArgs RowEventArgs RowObjectEventArgs ValidateRowEventArgs

See Also

ValidateRowEventArgs Members

ValidateRow

DevExpress.XtraGrid.Views.Base Namespace