PC Review


Reply
Thread Tools Rate Thread

Is ContextMenu working for DataGridView?

 
 
AlexS
Guest
Posts: n/a
 
      20th Nov 2005
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?


 
Reply With Quote
 
 
 
 
Andrej Tozon
Guest
Posts: n/a
 
      20th Nov 2005
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

"AlexS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with DataGridView and business objects David C Microsoft Dot NET Framework Forms 0 27th Oct 2009 09:49 PM
DataGridView e.CellStyle.BackColor not working Backwater Geezer Microsoft Dot NET Framework Forms 1 9th Oct 2008 11:57 AM
ContextMenu does not work in DataGridView Steve Richter Microsoft C# .NET 0 27th Aug 2007 05:32 AM
DataGridView Almost Working.... bern11 Microsoft C# .NET 2 27th Jun 2007 05:13 AM
Is it possible to add ContextMenu items to the Standard TextBox ContextMenu??? =?Utf-8?B?TWlrZSBpbiBQYXJhZGlzZQ==?= Microsoft Dot NET Framework Forms 1 15th Mar 2004 07:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 PM.