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