Click here to Skip to main content
15,886,765 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Is it possible to show context menu for range of items selection in datagridview using c#. In general we can show context menu when select any item and right-click on mouse.
Similarly can we show same context menu for range of items (two or more items selection) in datagridview in windows application?

Thanks.

What I have tried:

I applied context menu for single item selection in datagridview.
Posted
Comments
Ralf Meier 2-Aug-16 3:44am    
No directly with the Events or the ContextMenu-connection to the DGV. But I could imagine, that it could work if you check the myDataGridView.SelectedCells-Property before showing the ContextMenu.
Karthik_Mahalingam 2-Aug-16 11:02am    
might be a possible solution

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