DataGridColumn.GetColumnContainingElement Method

Returns the column that contains the specified element.

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


Public Shared Function GetColumnContainingElement ( _
    element As FrameworkElement _
) As DataGridColumn
public static DataGridColumn GetColumnContainingElement(
    FrameworkElement element


Return Value

Type: System.Windows.Controls.DataGridColumn
The column that contains the element, or nulla null reference (Nothing in Visual Basic) if the element was not found.

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.