Groups | Blog | Home
all groups > vb.net > january 2007 >

vb.net : Get index in datagridview


tlkerns
1/17/2007 6:50:01 PM
Try:

dataGridView.CurrentCell.RowIndex
or
dataGridView.CurrentCellAddress.Y

Tony

[quoted text, click to view]
Andy
1/17/2007 10:34:11 PM
Hi

I have an app with an datagrid that I will replace with a datagridview
controll.
In the old datagrid I could use

datagrid.currentrowIndex to get the index value for the current datarow,
but I'm not able to find anything similar for the datagridview controll. Any
ideas, anyone?

/A.

AddThis Social Bookmark Button