Tooltip over a datagrid column

pradeep1244

New member
Joined
Jan 15, 2008
Messages
1
Programming Experience
Beginner
Hi,

We have a datagrid column say Spaces and the description for this column is present in a hidden column in the same datagrid. We show this description in the tooltip of the Spaces column

We are using the inbuilt tooltip property of the data grid for achieving this functionality i.e. we are binding this column with the tooltip in the Datagrid_ItemDataBound method of the datagrid as

e.Item.Cells(2).ToolTip = e.Item.Cells(22).Text.Trim

Here Cells(2) is the Spaces column and Cells(22) is the description column. We have 2 issues with this implementation.

1. This tool tip does not stay for long i.e. it goes off say after some 5-6 seconds due to which the user cannot read the whole description clearly, and he has to again point the mouse to this to the tooltip back.
2. In some cases we have very long descriptions, in this case we are not able to show the whole tooltip as the inbuilt tool tip has width restrictions

So what we are looking for is, the tooltip should remain visible till the user moves his mouse and the whole description should be visible in the tooltip.

We are using VB.NET 2005 and this is a Web page datagrid

Any help would be greatly appreciated.
 
Last edited:
Back
Top