# Validation Error Indicator Remains

**PROBLEM**

You apply a row-level validation setting a custom **ValidationResult** when invoking the [RowValidating](https://www.telerik.com/products/wpf/documentation/controls/radgridview/features/managing-data-validation#validating-data-on-a-row-level) event. Then you correct the value, but the error indicator is still displayed.

**CAUSE**

The problem comes from the fact that you are introducing some user errors when validating RadGridView through the RowValidating event.

**SOLUTION**

With **Q3 2013** official release we have introduced a new property for **GridViewRowEditEndedEventArgs** - **UserDefinedErrors**. It contains all user errors for the row being edited. By handling the **RowEditEnded** event you can clear these errors and restore the valid state of the row.

**Example 1** shows how the property can be used.

**Example 1: Clearing user-defined errors**

```C#
private void rgvTest_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
{
    if (e.EditAction == GridViewEditAction.Cancel)
    {
        e.UserDefinedErrors.Clear();
    }
}
```

```VB.NET
Private Sub rgvTest_RowEditEnded(ByVal sender As Object, ByVal e As GridViewRowEditEndedEventArgs)
	If e.EditAction = GridViewEditAction.Cancel Then
		e.UserDefinedErrors.Clear()
	End If
End Sub
```

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radgridview/getting-started/getting-started2)

* [Validating](https://www.telerik.com/products/wpf/documentation/controls/radgridview/features/managing-data-validation)
