when run a database application whick uses datagrid control(vb6.0,service pack5),following code cann't run correctly,tell a error:6148 invalid row number.
the code:
[vbcode]
for i=0 to datagrid.approxcount-1
datagrid1.row=i
.......
next i
[\vbcode]
but if datagrid.approxcount<datagrid.visiblerows
that mean not scrolling the datagrid,the code run
correctly.why?and how to solve this problem?