DataControlBase.GetColumnByTreeElement(DependencyObject) Method

Returns a column whose cell contains the specified tree element.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v18.1.dll

Declaration

public ColumnBase GetColumnByTreeElement(
    DependencyObject d
)
Public Function GetColumnByTreeElement(
    d As DependencyObject
) As ColumnBase

Parameters

Type Name Description
DependencyObject d

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.

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