Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display current row at the top of grid.
Message
From
15/02/1999 22:18:27
 
 
To
15/02/1999 22:09:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00187898
Message ID:
00187903
Views:
25
Hi Robert,

>When you have grid on the form and you programmatically search for a record, then refresh the grid. The active record is displayed in the middle of the grid. Which I like, but my customer wants the active record to be displayed on the first row of the grid. How do I do this?

Can't you just check the ActiveRow property of the grid, which tells you the active row number counting down from the first row in the grid, and then call the grid's DoScroll method that number of times, handing a 0 (scroll up) as the parameter each time?

Phil
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Previous
Reply
Map
View

Click here to load this message in the networking platform