Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & CursorAdapter CursorFill()
Message
De
04/01/2011 08:30:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Grids & CursorAdapter CursorFill()
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01494587
Message ID:
01494587
Vues:
234
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform