DataGridViewRow.CreateCellsInstance Metoda

Definice

Vytvoří novou kolekci buněk na základě tohoto řádku.

protected:
 virtual System::Windows::Forms::DataGridViewCellCollection ^ CreateCellsInstance();
protected virtual System.Windows.Forms.DataGridViewCellCollection CreateCellsInstance ();
abstract member CreateCellsInstance : unit -> System.Windows.Forms.DataGridViewCellCollection
override this.CreateCellsInstance : unit -> System.Windows.Forms.DataGridViewCellCollection
Protected Overridable Function CreateCellsInstance () As DataGridViewCellCollection

Návraty

DataGridViewCellCollection

Nově vytvořená položka DataGridViewCellCollection.

Poznámky

Tato metoda vytvoří prázdnou DataGridViewCellCollection vlastnost nastavenou Count na 0.

Poznámky pro dědice

Odvozené třídy by obvykle měly implementovat vlastní verzi CreateCellsInstance() metody a nevolat základní verzi třídy.

Platí pro

Viz také