Avatar of varBoomer
varBoomer

asked on 

Right click and select row in DataGridView

Hi everyone.  In c# I'm trying to make it possible for the user to right click and select a row in a DataGridView that brings down a ContextMenuStrip that allows the person to insert, delete, etc. from the table.  My main goal at the moment is to make it possible to delete a specific row that the user has selected by right clicking it, but I haven't been able to find the correct code to create a right-mouse-button-click event.  I know it's possible to left click the row first to select it, but I'm trying to get around that so the ContextMenu drops down at the same time the user right clicks on the row.  Any help is appreciated.
C#

Avatar of undefined
Last Comment
varBoomer

8/22/2022 - Mon