Compartir vía


DataGridColumn.Width Propiedad

Definición

Obtiene o establece el ancho de columna o el modo de ajuste de tamaño automático.

public:
 property System::Windows::Controls::DataGridLength Width { System::Windows::Controls::DataGridLength get(); void set(System::Windows::Controls::DataGridLength value); };
public System.Windows.Controls.DataGridLength Width { get; set; }
member this.Width : System.Windows.Controls.DataGridLength with get, set
Public Property Width As DataGridLength

Valor de propiedad

Estructura que representa el ancho de columna o el modo de ajuste de tamaño automático. El valor predeterminado registrado es Auto. Para obtener información sobre lo que puede influir en el valor, vea DependencyProperty.

Comentarios

La Width propiedad, cuando se establece en un individuo DataGridColumn, tiene prioridad sobre la DataGrid.ColumnWidth propiedad .

La DisplayValue propiedad Width está restringida por las siguientes propiedades, si se establecen, en orden de prioridad:

Se aplica a

Consulte también