Freigeben über


DataGridRow.GetRowContainingElement Method

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

Returns the DataGridRow that contains the specified element.

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

Syntax

'Declaration
Public Shared Function GetRowContainingElement ( _
    element As FrameworkElement _
) As DataGridRow
public static DataGridRow GetRowContainingElement(
    FrameworkElement element
)

Parameters

Return Value

Type: System.Windows.Controls.DataGridRow
The DataGridRow that contains the specified element.

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.