Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello People

Can anyone help me on how to show a popup window on mouseover of link in Gridview.

I have 32 columns in a table. In UI, I am showing 6 to 8 columns in Gridview. I want to show other important details, when user hovers on a link in Gridview. Can anyone suggest me on this.

Thank you
Posted
Updated 3-Jun-10 1:26am
v2
Comments
Sergey Alexandrovich Kryukov 16-Apr-13 13:14pm    
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

Sushma_Patel wrote:
Can anyone suggest me on this.


Yes! try this:
1. Inject Javascript function on mousehover & mouseout of the link in a grid row.
2. In javascript, show a div that contains the needed details
3. onmouseout, hide the div.


Sushma_Patel wrote:
popup window on mouseover of link in gridview.


This would be really irritating! So instead of popup i suggested a div. yet if you want to show a popup, i would suggest you to use rowclick/linkclick event instead of mousehover. Flow of events and coding would be same.
1. Inject javascript function on rowclick
2. In javascript function show a new dialog window with all the details

Try to code them now...
 
Share this answer
 
v2
Comments
Sushma_Patel 3-Jun-10 8:36am    
Hi Sandeep,
Thanks for giving a solution.
but i want to show popup window on mouse over, i am able to do that on button click. Can you help me on javascript.
My code is:

function popup(stropen) {
open(stropen, "Info", "status=2, scrollbar=1, resizable=1, toolbar=no");
}


<asp:gridview id="GridView1" runat="server" style="font-size: small;
font-family: Verdana">
<columns>
<asp:templatefield>
<itemtemplate>
Select





This above works great on linkbutton click. Can you help me on javascript of mouseover.
:thumbsup::thumbsdown: :) :-D :laugh: ;) ;P :( :sigh: :doh: :(( :-\ :-O :rolleyes: :omg: :mad::confused::~:suss: X| :cool::rose:
 
Share this answer
 
Comments
raju melveetilpurayil 9-Sep-10 20:53pm    
what is this??

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