Is ContextMenu working for DataGridView?

  • Thread starter Thread starter AlexS
  • Start date Start date
A

AlexS

Net 2.0

It looks like only ContextMenuStrip can work with DataGridView. Whatever I
tried with ContextMenu it's not shown.

Is this by design or I miss something simple?
 
ContextMenu is deprecated in 2005 in favor of CotextMenuStrip. If you still
want to use ContextMenu, you have to assign it to the grid's ContextMenu
property at runtime and show it in the MouseUp event. See the ContextMenu
documentation for an example.

Hope that helps,
Andrej
 
Back
Top