The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.1.dll


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


Name Type Description
d DependencyObject

The element contained within the column.


Type Description

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) {
        // ...
See Also