Hi,
I have used .net's ContextMenuStrip to create several menu's depending on the environment.
I use the Grid's MouseDown event to set the various ContextMenuStrips which works great if a row is selected, but if a row is not selected, the ContextMenuStrip never gets displayed.
Problem I have is, I use the ContextMenuStrip for adding new rows, but if there are no rows, it will not pop up. DOH!
(I tried doing MyContextMenu.Show() - but that doesn't work either, it is as though you are forcing the system to never show in this scenario)
Is there a reason why it isn't popping up and is easily fixable?
Many thanks in advance.
Edited by moderator
2020-01-27T05:55:01Z
|
Reason: Igor/10Tec changed post status to [None]
Nicky Wilkes
Senior Software Engineer