This documentation is archived and is not being maintained.

DataGridView.RowValidated Event

Occurs after a row has finished validating.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public event DataGridViewCellEventHandler RowValidated
/** @event */
public void add_RowValidated (DataGridViewCellEventHandler value)

/** @event */
public void remove_RowValidated (DataGridViewCellEventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

This event is analogous to the Validated event. Use this event to perform post-processing on a row of values.

For more information about handling events, see Consuming Events.

The following code sample uses this event to clear up any error annotations that may have been left behind after validating the row.

Private Sub RemoveAnnotations(ByVal sender As Object, _
    ByVal args As DataGridViewCellEventArgs) _
    Handles songsDataGridView.RowValidated

    For Each cell As DataGridViewCell In _
        cell.ErrorText = String.Empty

    For Each row As DataGridViewRow In songsDataGridView.Rows
        row.ErrorText = String.Empty

End Sub

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0