Link to home
Start Free TrialLog in
Avatar of Iaskyou
Iaskyou

asked on

Why the value DataGrid.Row is limitted within 10

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??
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial