ASP.net
How to Add tool tip for gridview cells..and How to add styes for that tool tip
1 Answer
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
Rishikesh Kumar SinghRank #1,250 · 1.4K reputationPosted Feb 23, 2013, 7:34 AM EST
{
if(e.Row.RowType==DataControlRowType.Header) // checking out that whether the row is a header
{
for (int i = 0; i < GridView1.Columns.Count; i++)
{
e.Row.Cells[i].ToolTip = GridView1.Columns[i].HeaderText;
}
}
}
you can go through my blog
http://www.c-sharpcorner.com/Blogs/10742/showing-tooltip-on-header-columns-of-a-gridview.aspx
if it helps you then mark it as an accepted answer otherwise let me know..!!