GRIDVIEW TOOLTIP acting strange with lots of characters.
Posted on 2007-07-30
I have a web application... I query a db, load the data into a gridview.
One of the fields has a lot of text in it. When displayed, it stretches out the grid and it looks bad.
I wrote code to fix this. If there are more than 33 characters, I replace the text with "Move mouse cursor over to see finding..." I load the text into tooltip... The tooltip under that gridview... IE GridView1.Rows(i).Cells(8).ToolTip = GridView1.Rows(i).Cells(8).Text
This works excellent except for when there is a whole lot of text. Sometimes the text reach over 2000 characters. When this happens and you drag the mouse over the field "Findings" and it popups up the tooltip but the tooltip starts opening and closing in 1/2 sec intervals. It is annoying....
This there anything I can do to fix this??? I started looking at ways to customize the tooltip, but it all had to do with actually tooltip class... I wasn't sure how to customize the gridview tooltip.
I know tooltip probably wasn't designed to handle a ton of characters, but hopefully there is an easy fix for this.
If not, does anyone have any ideas on others ways to approach this?