Click here to Skip to main content
15,668,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi How I can design "Right Click" menu on the DataGridView rows?
It means when user write clicked on the data rows on DataGridView a list of something like delete,copy,paste,... open there.

now, how I can right click in a specify row, it means the right click just influence in current row!!! not anywhere in DataGridView I clicked the menu appear.
Updated 3-Jun-10 3:59am

1 solution

1) Drag and Drop "ContextMenuStrip" from the toolbar to your form,

2) Now configure the menu just like simple "MenuStrip",

3) Now change the property "ContextMenuStrip" of your DataGridView to that menu.

4) run the project and right click inside the DataGridView you will see the context menu.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900