Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selected Item in Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00338631
Message ID:
00339365
Views:
23
Alan,

Did you test this code? How do you invoke it? I just added LocatedRecordOnTop method to my grid class (author is Walter Messter now), but I haven't tested it yet...

>I got this code from a reply made by Walter Messter in response to a question similar to mine.
>
>>Hi Alan,
>>
>>Thanks for your reply. So, if I put the method LocatedRecordOnTop to my grid subclass, may I put you as an other?
>>
>>Thanks again.
>>
>>>I found a couple of solutions but this one is the easiest:
>>>
>>>>If x is the RECNO() of the record I want to appear at the top of the grid, how do I force the grid to scroll up or down so that row is at the top?
>>>
>>>this one is easy to manage, make an new method for the grid:
>>>**************************************************************
>>>THISFORM.LockScreen=.T.
>>>nHeight = THIS.Height
>>>THIS.Height = THIS.HeaderHeight + THIS.RowHeight
>>>THIS.Refresh
>>>THIS.Height=nHeight
>>>THISFORM.LockScreen=.F.
>>>***************************************************************
>>>
>>>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform