开发者

about datagrid in vb

开发者 https://www.devze.com 2023-01-23 03:21 出处:网络
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:

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

精彩评论

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