How can i create a context menu in c# in a datagridview
I have written a datagridview with a couple of columns to store data of a product, now i want to be able to right click any row and have a context menu appear with the options delete and copy. Copy should have the same function开发者_运维技巧ality as if I press Ctrl+C. Any help would be appreciated. Im using C# and WinForms. I have never done context menus before, so I would be thank full for any hint or link to further readings.
Cheers
Have a look at this problem on stack overflow, it should answer your query
Add context menu in a datagrid view in a winform application
精彩评论