DataGrid.CreateGridColumn Methode

Definition

Erstellt einen neuen DataGridColumnStyle, der dem Steuerelement hinzugefügt wird.

Überlädt

CreateGridColumn(PropertyDescriptor, Boolean)

Erstellt einen DataGridColumnStyle mithilfe des angegebenen PropertyDescriptor.

CreateGridColumn(PropertyDescriptor)

Erstellt einen neuen DataGridColumnStyle mit dem angegebenen PropertyDescriptor.

CreateGridColumn(PropertyDescriptor, Boolean)

Erstellt einen DataGridColumnStyle mithilfe des angegebenen PropertyDescriptor.

protected:
 virtual System::Windows::Forms::DataGridColumnStyle ^ CreateGridColumn(System::ComponentModel::PropertyDescriptor ^ prop, bool isDefault);
protected 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 Overridable Function CreateGridColumn (prop As PropertyDescriptor, isDefault As Boolean) As DataGridColumnStyle

Parameter

prop
PropertyDescriptor

Der PropertyDescriptor, der zum Erstellen des Datenblattspaltenstils verwendet wird.

isDefault
Boolean

true, um das Spaltenformat als Standard festzulegen, andernfalls false.

Gibt zurück

DataGridColumnStyle

Die neue DataGridColumnStyle.

Siehe auch

Gilt für

CreateGridColumn(PropertyDescriptor)

Erstellt einen neuen DataGridColumnStyle mit dem angegebenen PropertyDescriptor.

protected:
 virtual System::Windows::Forms::DataGridColumnStyle ^ CreateGridColumn(System::ComponentModel::PropertyDescriptor ^ prop);
protected 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 Overridable Function CreateGridColumn (prop As PropertyDescriptor) As DataGridColumnStyle

Parameter

prop
PropertyDescriptor

Der PropertyDescriptor, der zum Erstellen des Datenblattspaltenstils verwendet wird.

Gibt zurück

DataGridColumnStyle

Die neue DataGridColumnStyle.

Gilt für