| 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.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 MaxWidth, ActualWidth 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.
Supported Frameworks: Microsoft .NET Framework version 3.5