DataViewBase.GetCellElementByMouseEventArgs(MouseEventArgs) Method
In This Article
Returns a cell's UI element located at the specified coordinates.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.Core.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
e | Mouse |
The Mouse |
#Returns
Type | Description |
---|---|
Framework |
A Framework |
#Remarks
private void grid_MouseMove(object sender, System.Windows.Input.MouseEventArgs e) {
GridCellContentPresenter cell = grid.View.GetCellElementByTreeElement(
e.OriginalSource as DependencyObject)
as GridCellContentPresenter;
if (cell != null) {
// ...
}
}
See Also