DataGrid.RowHeight Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the standard height of rows in the control.

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

Syntax

'Declaration
Public Property RowHeight As Double
public double RowHeight { get; set; }
<sdk:DataGrid RowHeight="double"/>

Property Value

Type: System.Double
The standard height of rows in pixels. The default is 22.

Exceptions

Exception Condition
ArgumentOutOfRangeException

When setting this property, the specified value is greater than 65536.

Remarks

Dependency property identifier field: RowHeightProperty

If you set this property to a value that is less than 2, the control sets it to 2 automatically.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.