DataControlBase.GetColumnByTreeElement(DependencyObject) Method
In This Article
Returns a column whose cell contains the specified tree element.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
#Declaration
public ColumnBase GetColumnByTreeElement(
DependencyObject d
)
#Parameters
Name | Type | Description |
---|---|---|
d | Dependency |
The element contained within the column. |
#Returns
Type | Description |
---|---|
Column |
A Column |
#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