views:

34

answers:

1

I need to know which row is right-clicked on for the contextMenuStrip in a datagridview. Winforms, c#.

A: 
int id = (int)YourGridViewName.SelectedCells[0].Value;
Jeremy Morgan