共用方式為


DataGridView.CreateRowsInstance 方法

定義

建立及傳回新的 DataGridViewRowCollection

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

傳回

空的 DataGridViewRowCollection

適用於

另請參閱