Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Frnds,

Am working on asp.net C#, sqlserver 2005.

I have a product table in DB, which is displayed in gridview.

So, in that gridview i have a column with name product code.

I have no. of product codes displaying in gridview from Database as

Product Codes
=============
sony1xcy897 ----Show tool tip with IMAGE on mouse over
Hcam0087gh
LtopDellN5010
LtopToshiba
tabletsamsung9k

and also i have images for that particular code.


Please suggest me , how to use tool tip IMAGE on mouse Over in asp.net Gridview Cell.

Thanks,
Posted

Bind tool tip property of image with product code
 
Share this answer
 
Comments
Ranjith Reddy CSE 23-May-12 2:06am    
How ? please can u show me my Frnd, Am fresher in programming.
You can also do that,

you have different images for different prod_code right,
so you have to retrieve image path from DB and then bind tooltip property with image_prodCode as per given below
Bind tooltip at
C#
grdvw_rowdatabound()
{
----
lblprodcutcode.ToolTip = "productcode" +prodCode +imagepath + "";
----
}


Hope this will help you,
 
Share this answer
 
Comments
Ranjith Reddy CSE 23-May-12 2:38am    
Boss, I have Product Code and Images are in diferent tables, how can i do this ?
madhuri@mumbai 23-May-12 2:46am    
you can do this,just retreive a value from both table(with a common query) and then bind,
C++
<pre lang="Javascript"><pre lang="java"><pre lang="java">
 
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