I need to know which row is right-clicked on for the contextMenuStrip in a datagridview. Winforms, c#.
int id = (int)YourGridViewName.SelectedCells[0].Value;