DataGridViewRowCollection.Item[Int32] Propiedad

Definición

Obtiene el objeto DataGridViewRow en el índice especificado.

public:
 property System::Windows::Forms::DataGridViewRow ^ default[int] { System::Windows::Forms::DataGridViewRow ^ get(int index); };
public System.Windows.Forms.DataGridViewRow this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewRow
Default Public ReadOnly Property Item(index As Integer) As DataGridViewRow

Parámetros

index
Int32

Índice de base cero del objeto DataGridViewRow que se va a obtener.

Valor de propiedad

Objeto DataGridViewRow en el índice especificado. Obtener acceso a un DataGridViewRow con este indizador hace que la fila deje de estar compartida. Para mantener compartida la fila, use el método SharedRow(Int32). Para obtener más información, consulte Procedimientos recomendados para ajustar la escala del control DataGridView en Windows Forms.

Excepciones

index es menor que 0.

O bien

index es igual o mayor que Count.

Se aplica a

Consulte también