DataGrid.MinRowHeight Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the minimum height constraint of the rows and headers in the DataGrid.
public:
property double MinRowHeight { double get(); void set(double value); };
public double MinRowHeight { get; set; }
member this.MinRowHeight : double with get, set
Public Property MinRowHeight As Double
Property Value
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.
Remarks
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.