Xceed Toolkit Plus for WPF v4.6 Documentation
Width Property (ColumnBase)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > ColumnBase Class : Width Property
Gets or sets the width of the column, in device-independent units (1/96th inch per unit).
Syntax
'Declaration
 
Public Property Width As ColumnWidth
'Usage
 
Dim instance As ColumnBase
Dim value As ColumnWidth
 
instance.Width = value
 
value = instance.Width
public ColumnWidth Width {get; set;}

Property Value

The width of the column, in device-independent units (1/96th inch per unit). By default, 125.0d. "Star" ("*") values are used in combination with the ColumnStretchMode property when this property is set to All.

Remarks

Along with the Width property, the MinWidth and MaxWidth properties can be used to specify width information. If there is a conflict between these values, the order of application for actual width determination is first MinWidth must be honored, then MaxWidth, and finally if each of these are within bounds, Width.

In order for a column to have a fixed size, the MinWidth and MaxWidth properties must be set to the same value.

If Width is set to a value greater than MaxWidth, will be equal to MaxWidth. I Width is set to a value lesser than MinWidth or, if MaxWidth is inferior to MinWidth, ActualWidth will become equal to MinWidth.

The return value of this property is always the same as any value that was set to it. In contrast, the value of the ActualWidth property may vary if the suggested width has been rejected by the layout.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnBase Class
ColumnBase Members