Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
How can the EditorWithTextUIElement in the grid shows the Tooltips?
posted

Hi all,

I would like to know how can the active cell (which is in EditMode) shows the tooltips when the mouse move?

I can make it on another cell which is not in Edit mode.

The PrepareCellToolTip determine the Editmode cell is "EditorWithTextUIElement " while the others are CellUIElement.

I have logic to check the type can cast them to CellUIElement Successfully (by casting from EditorWithTextUIElement's parent)

And the PrepareCellToolTip return true but nothing is shown on the UI.

Any recommandation to implement this case?

Many thx and Regards

Andrew

Parents
No Data
Reply
  • 53790
    posted

    Hi,

    May be one possible suggestion is to get the event "ClickCell" at the UltraWinGrid and include the code below:

    private void ultraGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)

    {

    UltraToolTipInfo MyToolTipInfo = new UltraToolTipInfo();

    MyToolTipInfo.ToolTipText = e.Cell.GetText(Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth);

    ultraToolTipManager1.SetUltraToolTip(ultraGrid1, MyToolTipInfo);

    ultraGrid1.DisplayLayout.UIElement.CaptureMouseForElement(e.Cell.GetUIElement());

    }

     

     

     

     

    If you have any question do not hesitate to ask me

    Regards

Children
No Data