DataGrid::MinRowHeight Property

.NET Framework (current version)
 

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:
property double MinRowHeight {
	double get();
	void set(double value);
}

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
Available since 4.0
Return to top
Show: