开发者

In Winforms, how do you pass the datagridview row right-clicked on to the ContextMenuStrip?

开发者 https://www.devze.com 2022-12-21 02:10 出处:网络
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;

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号