Solved

How to add an item click event to an asp 3.5 ListView control ?

Posted on 2008-10-13
6
584 Views
Last Modified: 2013-11-08
I have a ListView control which is bound to a datasource. I want to do something in server side  when someone clicks on an item. I found no direct way of doing it. Is there any other solution ? Please help...
0
Comment
Question by:sathyanreddy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22708875
how about SelectedIndexChanged event?
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22708924
0
 

Author Comment

by:sathyanreddy
ID: 22708959
I am sorry. I did't find anything useful with the SelectedIndexChanged event. I want to raise an event when the user double clicks on any item in the listview. Is it possible ?
0
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 250 total points
ID: 22710136
there is no event for a double click for list view but for the control there is one MouseDoubleClick event
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mousedoubleclick(VS.80).aspx

in this event you can find what is selected in the list view and take action accordingly
Hope it helps
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question