Equivalent to DataGridView.HitTestInfo in Infragistics.Win.UltraWinGrid.UltraGrid?

Does anyone know if the Infragistics UltraGrid control supports functionality similar to the DataGridView.HitTestInfo function?

+3
source share
3 answers

Mark this one out.

They do not transform coordinates, but use the special Infragistics grid event ( MouseEnterElement ) to get the element that the mouse is currently hovering over.

Perhaps this helps.

+1
source

.MousePosition, System.Drawing.Point " ", UltraWinGrid (2003).

, , : o)

0

If you have a MouseEventHandler for UltraGrid, you can do the following:

UltraGrid grid = (UltraGrid)sender;

UIElement element = grid.DisplayLayout.UIElement.ElementFromPoint(new Point(e.X, e.Y));

Then you can drop the element depending on its expected type with element.GetContext ():

 UltraGridCell cell = (UltraGridCell)element.GetContext(typeof(UltraGridCell));
0
source

Source: https://habr.com/ru/post/1696953/


All Articles