Click here to Skip to main content
12,449,762 members (23,439 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
I have

EmployeeDetail Table contais five field
empno,
empname,
city,
region,
zone

bind gridview with these columns
empno,
empname,
city

and when mouse over the city field its region and zone display on tooltip

please give me a complate solution step by step

thanks in advance.
Posted 18-Nov-12 22:32pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
    e.Row.Cells[5].Attributes.add("Title",e.Row.Cells[5].Text);
//where cell 5 has the city
}
  Permalink  
Comments
ksbhatt48@ymail.com 19-Nov-12 6:28am
   
give me a complate solution please
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

// Server Side Code
        protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            e.Row.Cells[5].Attributes.add("onmouseover", "ShowTip(this);");
        }
 

 
        // JavaScript Function
        function ShowTip(td)
        {
            td.title = td.innerText;
        }
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100