Asp – tooltip in asp.net

asp.net

I have a gridview for which I am binding data from a Generic List collection. Currently not connected to DB. All the columns in the GridView are defined as properties(get;set.

I want to have tooltip on one of the columns. The column has a very big description. I want to show only 3 words in the column and the rest of the description should appear in tooltip.

Currently my gridview has only asp:gridview id and runat server

There are no columns, headertemplate and itemtemplate.

Could anyone suggest some idea on this.

Thanks in advance

Best Answer

Well, I don't know how you are getting your columns in place...but I suppose you could put a Label webcontrol in the itemtemplate for the header of each column, and give that label's tooltip property the value you want it to have.

Seems to me like that would be a pretty viable solution for this, if I'm understanding you correctly..

Related Topic