How can a tool-tip for a cell be displayed?

Jan 9, 2010 at 1:21 AM

Hello - is it possible to configure SourceGrid to display a tool-tip for any cell when the mouse cursor hovers over it?  For instance, if a text string can't be shown in its entirety within the cell, I'd like to be able to show a tool-tip showing the entire string if the user moves the mouse cursor over the cell.  For this scenario, the tool-tip text would be identical to the cell text.

I see two members that may help in the GridVirtual class - GridToolTipActive and GridToolTipText.  I set the former to true but saw no difference.  Also, I don't know what the GridToolTipText member maps to.  Thanks in advance.

Jan 9, 2010 at 3:12 AM

You simple may need to add the Controller:

grid1.Controller.AddController(New SourceGrid.Cells.Controllers.ToolTipText)


Jan 9, 2010 at 5:52 AM
Edited Jan 9, 2010 at 4:09 PM

I found how to display the tool-tip text.  One also has to set the cell's ToolTipText member to the string value of the cell.

Jan 9, 2010 at 12:18 PM

Yes, when you mannualy add the cells... but the method may vary depending the type of cell.