VGridControlBase.SetRowError(RowProperties, String) Method

For the VGridControl, this method sets an error description for a cell within the focused record. For the PropertyGridControl, this method sets an error description for the specified row.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

public virtual void SetRowError(
    RowProperties props,
    string errorText
)
Public Overridable Sub SetRowError(
    props As RowProperties,
    errorText As String
)

Parameters

Name Type Description
props RowProperties

A RowProperties object that is the row item that contains an error cell.

errorText String

A string value that specifies an error description. An empty string to clear the assigned error.

Remarks

Use the SetRowError method to assign errors to records or individual cells. This can be useful if you perform input validation by handling the VGridControlBase.ValidateRecord event and want to indicate input errors within cells.

Setting an error description for a cell results in displaying an error icon for the cell. Pointing to error icons with the mouse displays a hint with an appropriate error description.

Calling the SetRowError method has no effect if no record is currently focused (the vertical grid's VGridControlBase.FocusedRecord property's value is -1).

See Also