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)


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


Return Value

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

Version Information


Supported in: 5, 4, 3


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