Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid bottom
Message
From
22/07/2008 08:28:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01333075
Message ID:
01333083
Views:
23
This message has been marked as the solution to the initial question of the thread.
>If I use append blank, the grid goes to its BOTTOM
>That's OK
>
>However, it I use the commands below, the grid stays on TOP
>I expected it going to bottom and then showing the last record,
>and also some more records in the grid
>
>SELECT emails
>SET FILTER TO tipo = " "
>
>GO TOP
>
>LOCATE
>
> thisform.Refresh

Why did you expect it to go to bottom? You're explicitly telling it to go to 'top' twice and then refreshing. Are you trying to do something like this?
With Thisform.myGrid
 Select (.RecordSource)
 Go Bottom
 .Refresh
 .SetFocus()
 local lnRows
 lnRows = (.Height - .HeaderHeight - Iif(.ScrollBars%2=1,Sysmetric(8),0)) / .RowHeight
 For ix=1 To ( m.lnRows - .RelativeRow)
  .DoScroll(0)
 Endfor
Endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform