Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids & CursorAdapter CursorFill()
Message
 
 
To
04/01/2011 08:30:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01494587
Message ID:
01494591
Views:
87
>Hi Experts,
>
>A grid class I am toying with now has a reference to my CursorAdapter class. The grid has columns which is a subset of the fields of the CA class. The grid works fine initially on a form. Upon calling CursorFill(), the grid then displays a diff set of columns altogether.
>
>To elaborate:
>
>My CA class has Fields A, B, C, D, E and F. In the grid however, I only show fields A, B, D, and E - 4 columns. If I invoke CursorFill(), it still shows 4 columns, but now it shows fields A, B, C, D. Sample code below:
>
>
>Init Event:
>... code here to create a dummy cursor Tempdata based on myCA.Alias
>... also in setting the diff columns of myGrid
>
>MyRefresh Event:
>myGrid.RecordSource = "Tempdata"
>myCA.CursorFill()
>myGrid.RecordSource = myCA.Alias
>
>
>Thanks in advance,
>
>Dennis

If you want to use this approach, then you need to reset grid's recordsource to an empty string before calling CursorFill
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