ColumnHeaderHeight Property
Collapse the table of content
Expand the table of content

DataGrid.ColumnHeaderHeight Property


Gets or sets the height of the column headers row.

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

public double ColumnHeaderHeight { get; set; }

Property Value

Type: System.Double

The height of the column headers row, in device-independent units (1/96th inch per unit). The registered default is NaN. For more information about what can influence the value, see DependencyProperty.

Set this property to NaN to make the size of the column header automatically adjust to fit its content.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2015 Microsoft