• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 593
  • Last Modified:

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

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
sathyanreddy
Asked:
sathyanreddy
  • 2
1 Solution
 
SameerJagdaleCommented:
how about SelectedIndexChanged event?
0
 
Anurag ThakurTechnical ManagerCommented:
0
 
sathyanreddyAuthor Commented:
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
 
Anurag ThakurTechnical ManagerCommented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now