Datagridview cell balloon tip

daverage

Active member
Joined
Aug 29, 2006
Messages
26
Programming Experience
Beginner
Is it possble to give a cell in a datagridveiw a balloon tooltip?
 
Everything is possible, it's just not always straight forward. Check out the attached project. Acknowledgements go to Nick Pateman for the source code.....
 

Attachments

  • xpballoontips.zip
    13.1 KB · Views: 97
Well I know id vb2005 there is a tooltip componant that can be set as a balloon tip. I was wondering if that can then be used with the cell of a datagridview
 
The ToolTip.Show method is overloaded to take a point. So i suppose it is possible though i haven't tried it with a DGV cell. It will be a matter of associating the tooltip with the DGV and then get the location of the cell you want to display a tooltip for.

VB.NET:
ToolTip.Show(SomeText, YourDataGridView, New point(CellLocationX,CellLocationy)
Or alternatively you can just display it at the current cursor position. Whatever suits your needs
 
Back
Top