Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids & CursorAdapter CursorFill()
Message
From
04/01/2011 08:30:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Grids & CursorAdapter CursorFill()
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01494587
Message ID:
01494587
Views:
233
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
Next
Reply
Map
View

Click here to load this message in the networking platform