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;
精彩评论