Click here to Skip to main content
15,885,952 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 10-May-17 5:17am

C#
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
}
 
Share this answer
 
Comments
kaushikpintu 19-Nov-12 6:28am    
give me a complate solution please
C#
// 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;
        }
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900