DataGridView.UpdateRowErrorText DataGridView.UpdateRowErrorText DataGridView.UpdateRowErrorText DataGridView.UpdateRowErrorText Method

Definition

Forces one or more rows to update their error text.

Overloads

UpdateRowErrorText(Int32) UpdateRowErrorText(Int32) UpdateRowErrorText(Int32) UpdateRowErrorText(Int32)

Forces the row at the given row index to update its error text.

UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32)

Forces the rows in the given range to update their error text.

UpdateRowErrorText(Int32) UpdateRowErrorText(Int32) UpdateRowErrorText(Int32) UpdateRowErrorText(Int32)

Forces the row at the given row index to update its error text.

public:
 void UpdateRowErrorText(int rowIndex);
public void UpdateRowErrorText (int rowIndex);
member this.UpdateRowErrorText : int -> unit
Public Sub UpdateRowErrorText (rowIndex As Integer)

Parameters

rowIndex
Int32 Int32 Int32 Int32

The zero-based index of the row to update.

Exceptions

rowIndex is not in the valid range of 0 to the number of rows in the control minus 1.

Remarks

This method is useful when you maintain row error text yourself by handling the RowErrorTextNeeded event. Call this method when you change the stored error text for the specified row. This will force the DataGridView control to retrieve the updated text through the RowErrorTextNeeded event handler.

See also

UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32)

Forces the rows in the given range to update their error text.

public:
 void UpdateRowErrorText(int rowIndexStart, int rowIndexEnd);
public void UpdateRowErrorText (int rowIndexStart, int rowIndexEnd);
member this.UpdateRowErrorText : int * int -> unit
Public Sub UpdateRowErrorText (rowIndexStart As Integer, rowIndexEnd As Integer)

Parameters

rowIndexStart
Int32 Int32 Int32 Int32

The zero-based index of the first row in the set of rows to update.

rowIndexEnd
Int32 Int32 Int32 Int32

The zero-based index of the last row in the set of rows to update.

Exceptions

rowIndexStart is not in the valid range of 0 to the number of rows in the control minus 1.

-or-

rowIndexEnd is not in the valid range of 0 to the number of rows in the control minus 1.

-or-

rowIndexEnd is less than rowIndexStart.

Remarks

This method is useful when you maintain row error text yourself by handling the RowErrorTextNeeded event. Call this method when you change the stored error text for the specified rows. This will force the DataGridView control to retrieve the updated text through the RowErrorTextNeeded event handler.

See also

Applies to