开发者

about datagrid in vb

Please......any one can tell me code .... how can i get a rownumber of a selected row from a DATAGRIDVIEW in VB.net forms...开发者_开发技巧..


Sort-of duplicate, answered by Matt Hamilton:

You can simply use RowIndex on the current cell:

var row = dataGridView1.CurrentCell.RowIndex;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜