Hello
how is it possible to read cell value and display tooltip on mouse hover in a grid .
i tryed the
UIElement element = ultraGrid1.DisplayLayout.UIElement.ElementFromPoint(mousePoint);
{
}
but it does not work
My guess is that MousePosition returns you the position of the mouse in screen coordinates, not control coordinates. You can probably convert the coords using grid.PointToClient. Or you can use the MouseMove even and use e.X and e.Y.
Or, you could use grid.DisplayLayout.UIElement.LastElementEntered, instead of ElementFromPoint.
Or, you could use MouseEnterElement and MouseLeaveElement, as suggested above. :)
Mike, using the MouseEnterElement and MouseLeaveElement approach, can one introduce a tool tip delay i.e. it takes some time before the tool tip shows? Would one just sleep for a few millisecond and then cause the tooltip to show?