DataControlBase.GetColumnByTreeElement(DependencyObject) Method
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
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