Solved

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

Posted on 2008-10-13
6
583 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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