Skip to main content
A newer version of this page is available. .

DataControlBase.GetColumnByTreeElement(DependencyObject) Method

Returns a column whose cell contains the specified tree element.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll

Declaration

public ColumnBase GetColumnByTreeElement(
    DependencyObject d
)

Parameters

Name Type Description
d DependencyObject

The element contained within the column.

Returns

Type Description
ColumnBase

A ColumnBase descendant that specifies the column whose cell contains the specified tree element. null, if the column was not found.

Remarks

private void grid_PointerMoved_1(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) {
    ColumnBase column = grid.GetColumnByTreeElement(e.OriginalSource as DependencyObject);
    if (column != null) {
        // ...
    }
}
See Also