DataGridViewRow.CreateCellsInstance Metod

Definition

Konstruerar en ny samling celler baserat på den här raden.

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

Returer

Den nyligen skapade DataGridViewCellCollection.

Kommentarer

Den här metoden skapar en tom DataGridViewCellCollection med egenskapen inställd på Count 0.

Anteckningar till arvingar

Vanligtvis bör härledda klasser implementera sin egen version av CreateCellsInstance() metoden och inte anropa basklassversionen.

Gäller för

Se även