ListView Click Event
-
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