Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids: ActivateCell and ActiveRow
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00029157
Message ID:
00029459
Vues:
27
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform