Condividi tramite


DataGrid.MinColumnWidth Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the minimum width of columns in the DataGrid.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public Property MinColumnWidth As Double
public double MinColumnWidth { get; set; }
<sdk:DataGrid MinColumnWidth="double"/>

Property Value

Type: System.Double
The minimum column width in pixels. The default is 20.

Exceptions

Exception Condition
ArgumentOutOfRangeException

When setting this property, the specified value is less than zero or greater than MaxColumnWidth.

Remarks

Dependency property identifier field: MinColumnWidthProperty

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.