Row Attached Property
Collapse the table of content
Expand the table of content

Grid.Row Attached Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates which row child content within a Grid should appear in.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

See GetRow, SetRow
<object Grid.Row="int"/>

Property Value

Type: System.Int32
An Int32 value that represents the row in which child content should appear. The default value is 0.

Dependency property identifier field: RowProperty

Rows in a Grid are defined using the RowDefinition element.

The following example displays a TextBlock that is positioned in the fourth row.

<TextBlock Margin="5" Grid.Row="3" Grid.Column="0">1st Column, 4th Row</TextBlock>

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft