Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & CursorAdapter CursorFill()
Message
De
05/01/2011 06:32:06
 
 
À
05/01/2011 06:22:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
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:
01494752
Vues:
77
If possible, try a simple test without using the CA. I never use CA myself, so I don't know if a CA behaves differently.

>Tore,
>
>Absolutely none sir. This happened to me once before. Couldn't really figure why. The CA and the TempCursor cursors get populated with data though. After myGrid Refresh, it just shows a blank grid (but with the columns intact). I have to press Up or Down key before the records show up!
>
>The form the grid is in accepts the CA as an object parameter. There is an oCursor property where I stored the CA object, which also in the Init() calls its CursorFill(). I also pass oCursor property into an oCursor property of the concerned grid which in turn creates the TempCursor for its RecordSource.
>
>Dennis
>
>
>>>Tore,
>>>
>>>Update!
>>>
>>>Add Go Top before mygrid.refresh().

>>>
>>>Sorry, there really was a GO TOP like so:
>>>
>>>
>>>myCA.CursorFill()
>>>SELECT Tempcursor    && where Tempcursor is the 'permanent' RecordSource of myGrid
>>>ZAP
>>>APPEND FROM DBF( myCA.Alias )
>>>GO TOP
>>>myGrid.Refresh()
>>>myGrid.SetFocus()
>>>
>>>
>>>Dennis
>>
>>Are you sure that you don't have any code in refresh() or setfocus()? I use this solution all the time.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform