The DataSource property of this DataGrid is an ADODC. After User change the data, I want the DataGrid focus on the Changed row. The Codes are:
Dim lngBookID As Long
'grd2Books is a DataGrid
lngRePlace = grd2Books.Row 'Get the Current Row
'Modify the Data
'adoBooks is ADODC, the DataSource of DataGrid
adoBooks.Recordset.Move lngRePlace, adBookmarkFirst
But when I select the row after 10th, the value of lngReplace remains 9 for ever. why??