DataGrid.ColumnHeaderHeight Property

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)

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.


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

Dependency property identifier field: ColumnHeaderHeightProperty

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


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