DataGrid.MaxColumnWidth Property

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

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

public double MaxColumnWidth { get; set; }
<sdk:DataGrid MaxColumnWidth="double"/>

Property Value

Type: System.Double
The maximum column width in pixels. The default is Double.PositiveInfinity.


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

Dependency property identifier field: MaxColumnWidthProperty


Supported in: 5, 4, 3

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

Community Additions