This documentation is archived and is not being maintained.

DataGrid.MinRowHeight Property

Gets or sets the minimum height constraint of the rows and headers in the DataGrid.

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

public double MinRowHeight { get; set; }
<object MinRowHeight="double" .../>

Property Value

Type: System.Double
The minimum height constraint of rows, in device-independent units (1/96th inch per unit). The registered default is 0.0. For more information about what can influence the value, see DependencyProperty.

When you set a value for the MinRowHeight property, it must be greater than or equal to 0.0.

Double.PositiveInfinity and Double.NaN are not valid values for this property. The value restrictions on the Double value are enforced by a ValidateValueCallback mechanism. If you attempt to set a value that is not valid, a run-time exception is thrown.

If a conflict exists between the MinRowHeight property and the RowHeight property, MinRowHeight takes precedence. However, the Height property set on an individual DataGridRow has higher precedence than a property set at the DataGrid level and is not constrained by the MinRowHeight property.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.