Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ValidateRowEventArgs Class

Provides data for the ColumnView.ValidateRow event.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public class ValidateRowEventArgs :
    RowObjectEventArgs

#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

See Also