Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrollbox disappears, scrollbar disabled in grid
Message
From
15/11/2008 01:53:26
 
 
To
14/11/2008 19:01:27
Ken Penrod
Technical Perspectives, Inc.
Richardson, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01362035
Message ID:
01362053
Views:
9
>OK, I've banged my head on the wall enough on this.
>
>I have two pages in a pageframe with some textboxes to enter search criteria on Page1 and the results being displayed in a grid on Page2. Whenever I enter search criteria and execute the search the first time the data appears in the grid control correctly. Because the results return a cursor with a lot of records the scrollbar is active and the scrollbox displays. However, if I click back on the first tab and re-execute the same query and return the same cursor, the scrollbar is disabled and the scrollbox disappears.
>
>And yes I do make sure I've set the RecordSource back to a dummy SQL statement before re-executing the query so that I don't lose all the settings on my grid.
>
>Anyone have an idea about this one? I haven't found anything on this when I searched the forum. I'm running VFP8 on Windows XP.
>

Ken,

Vlad Grynchyshyn did some research on that topic and wrote an article: http://www.levelextreme.com/Report.aspx?Session=5859695A6934524B6E316F3D205846334768676B78656544416E673375385234767552416272492F4E34697772

If using Views is not an option and if the structure of the result cursor changes, different result columns for example, you may need to rebuild the entire grid at runtime by re-setting all required property values, addobject'ing your member classes again, and so on.


hth
-Stefan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform