Hi friends,
How to add (fancy) tooltip on each of webgrid in MVC3.
Thanks in advance...
-
Rakesh
Fancy tooltip on each row of webgrid
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Parveen SiwachRank #6,758 · 257 reputationPosted May 28, 2013, 5:40 AM EDT
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
for (int colIndex = 0; colIndex < e.Row.Cells.Count; colIndex++)
{
string ttString = "Result of database lookup";
e.Row.Cells[colIndex].Attributes.Add("title", ttString);
}
}
rakesh patil66 reputationPosted May 28, 2013, 6:07 AM EDT
Thanks for ur answer,
but, I i need it for MVC3
Parveen SiwachRank #6,758 · 257 reputationPosted May 28, 2013, 6:43 AM EDT
Html.Raw("" +
item.ModelItem.LongTextColumn.PadRight(25).Substring(0, 25) +
""), canSort: false)