VB 6.0 - DataGrid - Asked By Rusty on 13-Dec-11 04:37 PM

I have a DataGrid with ten rows visable but 20 records. How can I get the correct row?
Riley K replied to Rusty on 13-Dec-11 07:45 PM


Try to get the selected row like this 


dim numberofRow as integer numberofRow = datagrid.row

Refer this link for example
http://www.vbforums.com/showthread.php?t=602939


Regads
Rusty replied to Riley K on 14-Dec-11 09:11 AM
That returns the visible row, it works if rows 1 through 10  work. If I scroll down to rows 11 through 20 I get the same 1 through 10 refrence. If I choose 20 for example, i get the index of 10.