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.ErrorText Property

Gets or sets the error description.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public string ErrorText { get; set; }

#Property Value

Type Description
String

A string representing the error description.

#Remarks

You can use the ErrorText property to provide text explaining why validation failed. If setting the ValidateRowEventArgs.Valid property to false, the text will be displayed within a message box. Note that the text will be followed by the ‘Do you want to correct the value?‘ string.

If handling the ColumnView.InvalidRowException event, you can modify the error message box’s text before displaying it. Note also, that this event can prevent the display of the message box.

See Also