DataGrid.CreateGridColumn Método

Definición

Crea un nuevo DataGridColumnStyle objeto que se agrega al control .

Sobrecargas

Nombre Description
CreateGridColumn(PropertyDescriptor, Boolean)

Crea un DataGridColumnStyle objeto mediante el especificado PropertyDescriptor.

CreateGridColumn(PropertyDescriptor)

Crea un nuevo DataGridColumnStyle objeto con el especificado PropertyDescriptor.

CreateGridColumn(PropertyDescriptor, Boolean)

Source:
DataGrid.cs
Source:
DataGrid.cs

Crea un DataGridColumnStyle objeto mediante el especificado 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

Parámetros

prop
PropertyDescriptor

PropertyDescriptor que se va a usar para crear el estilo de columna de cuadrícula.

isDefault
Boolean

true para establecer el estilo de columna como valor predeterminado; de lo contrario, false.

Devoluciones

El nuevo DataGridColumnStyle.

Consulte también

Se aplica a

CreateGridColumn(PropertyDescriptor)

Source:
DataGrid.cs
Source:
DataGrid.cs

Crea un nuevo DataGridColumnStyle objeto con el especificado 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

Parámetros

prop
PropertyDescriptor

PropertyDescriptor que se va a usar para crear el estilo de columna de cuadrícula.

Devoluciones

El nuevo DataGridColumnStyle.

Se aplica a