Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Separate Tooltip of Gridview HeaderText into mutli-line

6 views
Skip to first unread message

Chi Wai

unread,
Feb 26, 2008, 7:34:59 AM2/26/08
to
Hi

I am wondering if it is possible to create a tooltip for gridview header
text?
if so, is it possible to set it to have mutli-line? I tried to do it on the
ASPX page,
but it does not seems to work.

Many thanks

Chi


v-wy...@prcvap.microsoft.com

unread,
Feb 26, 2008, 9:50:01 PM2/26/08
to
Hello Chi Wai,

You may check out there. This article descripted how to add tooltip into DataGrid Head.
http://www.extremeexperts.com/Net/CodeSnippets/ToolTipForDataGridHeader.aspx
[ToolTip for DataGrid Header]

by the way, if you want to have mutli-line, you can separate them by "<BR>".

Hope this helps.
Best regards,

Wen Yuan
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

jmsides

unread,
Mar 2, 2008, 9:39:00 PM3/2/08
to
<BR> does not work for me. (HeaderText="Log<BR>Id" ). The browser simple
display "text"<BR>"text". Can you provide example of the HTML source?

v-wy...@prcvap.microsoft.com

unread,
Mar 3, 2008, 9:24:58 PM3/3/08
to
Hello Jmside,

oops... It seems <BR> doesn't works in Tooltip.
Please try this way. The following code could achive what you need.

this.Label1.ToolTip = "Hello "+System.Environment.NewLine+" all";
or
this.Label1.ToolTip = "Hello \n all";

Hope this helps.
Best regards,
Wen Yuan
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Chi Wai

unread,
Mar 4, 2008, 7:56:46 AM3/4/08
to
Hi Wen Yuan

I think it does not work as well. It just read it as a space : (

Any idea?

Many thanks

Chi
<v-wy...@prcvap.microsoft.com> wrote in message
news:32d4e346-93a0-4fe0...@ms.shabap01.publicpsswebcat...

v-wy...@prcvap.microsoft.com

unread,
Mar 4, 2008, 10:42:28 PM3/4/08
to
Hello Chi,

That’s strange. I have tried “\n” on my side. It really works.
Do you have any screen shooting about the problem?
And please paste some code snippet about how you set the text into ToolTip property. I cannot reproduce the issue.

Thanks.

Chi Wai

unread,
Mar 5, 2008, 3:48:22 AM3/5/08
to
Hi Wen Yuan

Here it is the code that I did for the label

<asp:Label ID="lbl_CPPW" runat="server" ToolTip="abc \n bce"
Text="yeaheyaheyayaw"/>

Do you think the problem I have is because I do all the thing in asp tag?

Thanks very much for your help.

Many thanks

Chi
<v-wy...@prcvap.microsoft.com> wrote in message

news:c3684741-fe9a-40ef...@ms.shabap01.publicpsswebcat...

v-wy...@prcvap.microsoft.com

unread,
Mar 5, 2008, 9:19:42 PM3/5/08
to
Hello Chi,

In ASP.net tag. you have to add new line directly. for example:

<asp:Label ID="lbl_CPPW" runat="server" ToolTip="abc

bce"
Text="yeaheyaheyayaw"/>

Hope this helps.
Best regards,

v-wy...@prcvap.microsoft.com

unread,
Mar 9, 2008, 10:29:27 PM3/9/08
to
Hello Chi,

Does this method work? I haven't heard from you a couple of days. Do you face any further issue these day? Please feel free to let us know. We are glad to assist you.

Thanks,

Chi Wai

unread,
Mar 10, 2008, 5:35:02 AM3/10/08
to
Hi Wen Yuan

Sorry about reply late, Thanks for your information. It works perfectly.

Thanks very much for your help.

Chi
<v-wy...@prcvap.microsoft.com> wrote in message
news:5e766e24-adba-4b75...@ms.shabap01.publicpsswebcat...

v-wy...@prcvap.microsoft.com

unread,
Mar 11, 2008, 2:10:08 AM3/11/08
to
Thanks for your reply, Chi.
You are welcome.

Have a great day,
Best regards,

pliant

unread,
Jun 4, 2008, 3:22:00 PM6/4/08
to
This way works as well:

ToolTip='<%# String.Format("The order to display{0}the field in the form",
System.Environment.NewLine) %>'

0 new messages