I have a Listview as follows
Header1 Header2 Header3 Item1 Item2 Item3 Item1 Item2 Item3 Item1 Item2 Item3
I wrote code to show the context menu when I click on list view , but it also shows context menu on headers . I need to display the context menu only when the user clicks Items list view , can someone help me
This is my code that I have written now
private void listView1_MouseClick(object sender, MouseEventArgs e) { contextMenuStrip1.Show(listView1, e.Location); }
Vivekh
source share