HasFixedWidth Property
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > Column Class : HasFixedWidth Property

Gets a value indicating whether the column has a fixed width.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property HasFixedWidth As Boolean
C# 
public bool HasFixedWidth {get;}

Return 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

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also