DataGrid.ColumnHeaderHeight Property

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

Gets or sets the height of the column headers row.

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

Syntax

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

Property Value

Type: System.Double
The height of the column headers row in pixels. The default is Double.NaN.

Exceptions

Exception Condition
ArgumentOutOfRangeException

When setting this property, the specified value is less than 4 or greater than 32768.

Remarks

Dependency property identifier field: ColumnHeaderHeightProperty

By default, the column header will automatically adjust its size to fit its content.

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.