DataGrid.CreateGridColumn Metod

Definition

Skapar en ny DataGridColumnStyle som läggs till i kontrollen.

Överlagringar

CreateGridColumn(PropertyDescriptor, Boolean)

Källa:
DataGrid.cs
Källa:
DataGrid.cs

Skapar en DataGridColumnStyle med den angivna 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

Parametrar

prop
PropertyDescriptor

Att PropertyDescriptor använda för att skapa rutnätskolumnformatet.

isDefault
Boolean

trueför att ange kolumnformatet som standard. annars . false

Returer

Den nya DataGridColumnStyle.

Se även

Gäller för

CreateGridColumn(PropertyDescriptor)

Källa:
DataGrid.cs
Källa:
DataGrid.cs

Skapar en ny DataGridColumnStyle med angiven 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

Parametrar

prop
PropertyDescriptor

Att PropertyDescriptor använda för att skapa rutnätskolumnformatet.

Returer

Den nya DataGridColumnStyle.

Gäller för