Solved

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

Posted on 2008-10-13
6
578 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
  • 2
6 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
Comment Utility
how about SelectedIndexChanged event?
0
 
LVL 26

Expert Comment

by:Anurag Thakur
Comment Utility
0
 

Author Comment

by:sathyanreddy
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now