Sdílet prostřednictvím


DataGridViewSelectedRowCollection.Insert(Int32, DataGridViewRow) Metoda

Definice

Vloží řádek do kolekce na zadané pozici.

public:
 void Insert(int index, System::Windows::Forms::DataGridViewRow ^ dataGridViewRow);
public void Insert(int index, System.Windows.Forms.DataGridViewRow dataGridViewRow);
member this.Insert : int * System.Windows.Forms.DataGridViewRow -> unit
Public Sub Insert (index As Integer, dataGridViewRow As DataGridViewRow)

Parametry

index
Int32

Index založený na nule, do kterého dataGridViewRow se má vložit.

Výjimky

Vždycky vyhodili.

Poznámky

Tato metoda není pro tuto třídu relevantní. Třídu nelze změnit DataGridViewSelectedRowCollection přímo. Chcete-li vložit řádek do objektu DataGridViewSelectedRowCollection, použijte DataGridViewBand.Selected vlastnost.

Platí pro

Viz také