In Winforms, how do you pass the datagridview row right-clicked on to the ContextMenuStrip?
I need to know whic开发者_开发技巧h row is right-clicked on for the contextMenuStrip in a datagridview. Winforms, c#.
int id = (int)YourGridViewName.SelectedCells[0].Value;
精彩评论