Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - Scrolled event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00236175
Message ID:
00236645
Vues:
10
Hi Barbara,

>Why do you need the code in the Grid.Scrolled event? The AfterRowColChange event will fire whenever you move the record pointer, which is what you're updating. Scrolling moves the records up and down the grid, but the active record remains the same.

Yes, you're right, I understand that record remains the same. But, from the user point of view when we navigate via scrollbar we change record number. What's why I want to update my form appropriately. But if it's not doable, it's not so important.


Thanks for your response


>
>>Hello,
>>
>> Today I found some problem with Grid.Scrolled event.
>>
>> In grid.AfterRowColChange method I put this code:
>>
>> Local lnRecno, lnNumberOfRecords
>> lnRecno=RECNO("DataDict")
>> lnNumberOfRecords=RECCOUNT("DataDict")
>> THIS.STATUSBARTEXT=Space(20)+"Record "+;
>> alltrim(str(lnRecno))+;
>> " of "+alltrim(str(lnNumberOfRecords))
>> THIS.parent.Refresh()
>> THISFORM.NavStand.NavUpdate()
>>
>> Parent of my grid is PageFrame.
>> Then I try to put the same code into Scrolled event Grid returns to the first record.
>>
>> How can I achive my goal here (I want to refresh() contain of textboxes depending on current record)
>>
>> Thanks in advance
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform