DataGridView.UpdateRowErrorText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Forces one or more rows to update their error text.
Overloads
UpdateRowErrorText(Int32) |
Forces the row at the given row index to update its error text. |
UpdateRowErrorText(Int32, Int32) |
Forces the rows in the given range to update their error text. |
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
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
Applies to
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
The zero-based index of the first row in the set of rows to update.
- rowIndexEnd
- 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
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за