DataGridTableStyle.CreateGridColumn 方法

定義

多載

CreateGridColumn(PropertyDescriptor)

使用指定的屬性描述項,建立 DataGridColumnStyle

CreateGridColumn(PropertyDescriptor, Boolean)

使用指定的屬性描述項,建立 DataGridColumnStyle。 指定 DataGridColumnStyle 是否為預設的資料行樣式。

CreateGridColumn(PropertyDescriptor)

使用指定的屬性描述項,建立 DataGridColumnStyle

protected public:
 virtual System::Windows::Forms::DataGridColumnStyle ^ CreateGridColumn(System::ComponentModel::PropertyDescriptor ^ prop);
protected internal virtual System.Windows.Forms.DataGridColumnStyle CreateGridColumn (System.ComponentModel.PropertyDescriptor prop);
abstract member CreateGridColumn : System.ComponentModel.PropertyDescriptor -> System.Windows.Forms.DataGridColumnStyle
override this.CreateGridColumn : System.ComponentModel.PropertyDescriptor -> System.Windows.Forms.DataGridColumnStyle
Protected Friend Overridable Function CreateGridColumn (prop As PropertyDescriptor) As DataGridColumnStyle

參數

prop
PropertyDescriptor

用來建立資料行樣式物件的 PropertyDescriptor

傳回

新建立的 DataGridColumnStyle

適用於

CreateGridColumn(PropertyDescriptor, Boolean)

使用指定的屬性描述項,建立 DataGridColumnStyle。 指定 DataGridColumnStyle 是否為預設的資料行樣式。

protected public:
 virtual System::Windows::Forms::DataGridColumnStyle ^ CreateGridColumn(System::ComponentModel::PropertyDescriptor ^ prop, bool isDefault);
protected internal virtual System.Windows.Forms.DataGridColumnStyle CreateGridColumn (System.ComponentModel.PropertyDescriptor prop, bool isDefault);
abstract member CreateGridColumn : System.ComponentModel.PropertyDescriptor * bool -> System.Windows.Forms.DataGridColumnStyle
override this.CreateGridColumn : System.ComponentModel.PropertyDescriptor * bool -> System.Windows.Forms.DataGridColumnStyle
Protected Friend Overridable Function CreateGridColumn (prop As PropertyDescriptor, isDefault As Boolean) As DataGridColumnStyle

參數

prop
PropertyDescriptor

用來建立資料行樣式物件的 PropertyDescriptor

isDefault
Boolean

指定 DataGridColumnStyle 是否為預設的資料行樣式。 這個參數是唯讀的。

傳回

新建立的 DataGridColumnStyle

適用於