R
rajkiranpro
I have created a context menu for the listview and I wanno show the context
menu if and only if a particular listviewitem is highlighted.
I used the following code
private void contextLstContent_Opening(object sender,
CancelEventArgs e)
{
if (lstContent.SelectedItems.Count < 1)
{
e.Cancel = true;
}
}
instead of doing like this want is I want to select/highlight the
listviewitem pointed by the mouse pointer when right clicked and show the
context menu.
any suggestions???
Regards
Rajkiran
menu if and only if a particular listviewitem is highlighted.
I used the following code
private void contextLstContent_Opening(object sender,
CancelEventArgs e)
{
if (lstContent.SelectedItems.Count < 1)
{
e.Cancel = true;
}
}
instead of doing like this want is I want to select/highlight the
listviewitem pointed by the mouse pointer when right clicked and show the
context menu.
any suggestions???
Regards
Rajkiran