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)

Syntax

'Declaration
Public Property MaxColumnWidth As Double
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.

Exceptions

Exception Condition
ArgumentOutOfRangeException

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

Remarks

Dependency property identifier field: MaxColumnWidthProperty

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.