开发者

How can i create a context menu in c# in a datagridview

开发者 https://www.devze.com 2023-02-04 06:22 出处:网络
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 sh

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

0

精彩评论

暂无评论...
验证码 换一张
取 消