Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. ListView Click Event

ListView Click Event

Scheduled Pinned Locked Moved .NET (Core and Framework)
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijayaramaraju
    wrote on last edited by
    #1

    Hi, I have been trying to ctach an click event on a ListView when the cursor is not present on any items. I tried the Click and MouseClick events but I seem to do something wrong and the event does not fire off. What I have been trying to do is to create a ListView which has rows added to it at run time based on the context menu. The context menu Has to get enabled or disabled based on some external condition. what I have done is I have put this code to enable or disable the menu in the click event. but I observed that I was not getting the event if there are no rows present in the list view and the event seems to work when there are some rows and the click is performed on the row. can anyone let me know what I am doing wrong. Regards, Vijay

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups