Solved

Text in tooltip bound field bridview

Posted on 2016-10-12
3
49 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

680 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