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

Gets or sets the minimum width of the column, in device-independent units (1/96th inch per unit).

Syntax

Visual Basic (Declaration) 
Public Property MinWidth As Double
C# 
public double MinWidth {get; set;}

Return Value

A value indicating the minimum width of the column, in device-independent units (1/96th inch per unit). Must be greater than or equal to 0 and less than MaxWidth. By default, double.NaN.

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 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.

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

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also