Solved

Text in tooltip bound field bridview

Posted on 2016-10-12
3
29 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
Comment Utility
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
Comment Utility
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
Comment Utility
Perfect, Thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

16 Experts available now in Live!

Get 1:1 Help Now