DataGridColumn.GetColumnContainingElement Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Returns the column 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 GetColumnContainingElement ( _
element As FrameworkElement _
) As DataGridColumn
public static DataGridColumn GetColumnContainingElement(
FrameworkElement element
)
Parameters
- element
Type: System.Windows.FrameworkElement
An element contained in a column.
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
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.