DataGridViewRowCollection.Item[Int32] Propiedad

Definición

Obtiene en DataGridViewRow 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

en DataGridViewRow el índice especificado. El acceso a un DataGridViewRow elemento con este indexador hace que la fila deje de compartirse. Para mantener la fila compartida, use el SharedRow(Int32) método . Para obtener más información, vea Procedimientos recomendados para escalar el control DataGridView de formularios Windows Forms.

Excepciones

index es menor que 0.

O bien

index es igual o mayor que Count.

Se aplica a

Consulte también