Solved

Text in tooltip bound field bridview

Posted on 2016-10-12
3
42 Views
Last Modified: 2016-10-17
How do I add text to gridview template boundfields
eg
  <asp:CheckBox ID="chkPFRequired" runat="server" Checked='<%# Bind("PF_REQUIRED") %>' Enabled="false" ToolTip='<%# Bind("PDM_PASSED_TO_TL")%>' />

Open in new window


Ideally, what I want to do is have 2 separate bound values and some text in the same tooltip.

Eg

 ToolTip=" passed to " + '<%# Bind("PDM_PASSED_TO_TL")%>' + "ON" +'<%# Bind("2ND BOUND FIELD")%>'   />
0
Comment
Question by:edjones1
  • 2
3 Comments
 

Author Comment

by:edjones1
ID: 41839816
OK, I've part solved it.

But would still like to hardcode text into this...
ToolTip='<%#Eval("PDM_PASSED_TO_TL").ToString() + ", " + Eval("PDM_TO_TL_COMPLETED_DATESTAMP").ToString() %>'

Open in new window

0
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 500 total points
ID: 41840455
Hi edjones1,

You can replace the value "PDM_PASSED_TO_TL" and "PDM_TO_TL_COMPLETED_DATESTAMP" to database field name.

ToolTip='<%# string.Concat(Eval("PDM_PASSED_TO_TL"), " ,", Eval("PDM_TO_TL_COMPLETED_DATESTAMP"))%>'

Example:
ToolTip='<%# string.Concat(Eval("FirstName"), " ", Eval("LastName"))%>'

Regards,
Tapan Pattanaik
0
 

Author Closing Comment

by:edjones1
ID: 41846456
Perfect, Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now