DataGridViewRow.CreateCellsInstance Metoda

Definicja

Tworzy nową kolekcję komórek na podstawie tego wiersza.

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

Zwraca

Nowo utworzony element DataGridViewCellCollection.

Uwagi

Ta metoda tworzy pustą wartość DataGridViewCellCollection z właściwością ustawioną Count na 0.

Uwagi dotyczące dziedziczenia

Zazwyczaj klasy pochodne powinny implementować własną wersję CreateCellsInstance() metody i nie wywoływać wersji klasy bazowej.

Dotyczy

Zobacz też