DataGridViewRow.GetErrorText(Int32) Método
Definición
Obtiene el texto de error para la fila del índice especificado.Gets the error text for the row at the specified index.
public:
System::String ^ GetErrorText(int rowIndex);
public string GetErrorText (int rowIndex);
member this.GetErrorText : int -> string
Public Function GetErrorText (rowIndex As Integer) As String
Parámetros
- rowIndex
- Int32
Índice de la fila que contiene el error.The index of the row that contains the error.
Devoluciones
Cadena que describe el error de la fila del índice especificado.A string that describes the error of the row at the specified index.
Excepciones
La fila pertenece a un control DataGridView y es una fila compartida.The row belongs to a DataGridView control and is a shared row.
La fila pertenece a un control DataGridView y rowIndex
es menor que cero o mayor que el número de filas del control menos uno.The row belongs to a DataGridView control and rowIndex
is less than zero or greater than the number of rows in the control minus one.
Comentarios
Pase el GetErrorText método al índice que usó para recuperar DataGridViewRow .Pass the GetErrorText method the index you used to retrieve the DataGridViewRow. No use la Index propiedad para el rowIndex
parámetro.Do not use the Index property for the rowIndex
parameter. Si la fila está compartida, Index es-1, que es un valor no válido para rowIndex
.If the row is shared, Index is -1, which is an invalid value for rowIndex
. Para obtener más información sobre el uso compartido de filas, vea prácticas recomendadas para escalar el control DataGridView Windows Forms.For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.