Sdílet prostřednictvím


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

Nově vytvořený DataGridViewCellCollection.

Poznámky

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

Poznámky pro dědice

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

Platí pro

Viz také