Export (0) Print
Expand All
Expand Minimize

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)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

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.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft