Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids: ActivateCell and ActiveRow
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00029157
Message ID:
00029459
Views:
25
Hi Jeff,

>2. The code moves the pointer to the next row, but the row indicator (or whaterver the right pointing triangle at the left of the grid is called) appears twice! Also, the previous cell remains highlighted!
>
>NODEFAULT
>lCurrentRecord=RECNO("cashlist_hli_param_view")
>lTotalRecords=RECCOUNT("cashlist_hli_param_view")
>IF lCurrentRecord = lTotalRecords
> Thisform.grdCashList.ActivateCell(1,1)
>ELSE
> Thisform.grdCashList.ActivateCell(lCurrentRecord+1,1)
>ENDIF

Try to do it manipulating the table instead of the grid:

NODEFAULT
Thisform.grdCashList.column1.setfocus()
SKIP 1
IF EOF() THEN
GOTO TOP
ENDIF

Seems like changing the active row doesn't move the record pointer,
so things become a mess :).

HTH,

J. Luis
J. Luis Santiago Rodríguez.• CADIS • E-mail: jlsantiago@iserve.net.mx• Ciudad de México.
Previous
Reply
Map
View

Click here to load this message in the networking platform