Xceed DataGrid for WPF v7.2 Documentation
HasFixedWidth Property


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > ColumnBase Class : HasFixedWidth Property
Gets a value indicating whether the column has a fixed width.
Syntax
'Declaration
 
Public ReadOnly Property HasFixedWidth As Boolean
'Usage
 
Dim instance As ColumnBase

Dim value As Boolean

 

instance.HasFixedWidth = value

 

value = instance.HasFixedWidth
public bool HasFixedWidth {get;}

Property Value

true if the column has a fixed width; false otherwise. By default false.
Remarks

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

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.

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

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