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:
00339541
Views:
15
Nadya,

No I haven't tested it. The need for it went away before I tried it. It looks like you would just call the method after the grid is populated. It kind of makes sense. I think it reduces the grid size to allow only one row, forcing it to the first row and then resizes it to the original size.
Let me know how it works out.
>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.
>>>>***************************************************************
>>>>
>>>>
Alan Trosky
MIS Director
Pennsylvania Bar Association
Harrisburg PA 17108
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform