By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,034 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,034 IT Pros & Developers. It's quick & easy.

Disabling Items on a Context Menu in a Listview

P: n/a
I have a listview that I want to be able to right-click on an item and
delete that row.

I can do this easily, however, I want to only enable the delete menu option
if the mouse pointer is over an actual populated row. Right now, if I right
click in the lower (unpopulated) half of the listview, I can still click
delete. Which seems to automatically delete the first item in the list.

any help is appreciated

Thanks

Charlie
Aug 18 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nevermind, got it working now

Charlie

"Charles May" <qu*********@hotmail.comwrote in message
news:mY*****************@newssvr22.news.prodigy.ne t...
>I have a listview that I want to be able to right-click on an item and
delete that row.

I can do this easily, however, I want to only enable the delete menu
option if the mouse pointer is over an actual populated row. Right now, if
I right click in the lower (unpopulated) half of the listview, I can still
click delete. Which seems to automatically delete the first item in the
list.

any help is appreciated

Thanks

Charlie

Aug 18 '07 #2

P: n/a
Charles,

For the benefit of the many, /many/ developers who will undoubtedly
follow in your footsteps ... how???

Regards,
Phill W.
Charles May wrote:
Nevermind, got it working now

Charlie

"Charles May" <qu*********@hotmail.comwrote in message
news:mY*****************@newssvr22.news.prodigy.ne t...
>I have a listview that I want to be able to right-click on an item and
delete that row.

I can do this easily, however, I want to only enable the delete menu
option if the mouse pointer is over an actual populated row. Right now, if
I right click in the lower (unpopulated) half of the listview, I can still
click delete. Which seems to automatically delete the first item in the
list.

any help is appreciated

Thanks

Charlie

Aug 21 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.