Click here to Skip to main content
12,999,417 members (54,522 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
Updated 10-May-17 5:17am
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
Web02 | 2.8.170624.1 | Last Updated 10 May 2017
Copyright © CodeProject, 1999-2017
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