Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - Scrolled event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00236175
Message ID:
00236236
Views:
10
This message has been marked as the solution to the initial question of the thread.
Nadya,
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.

Barbara

>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
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform