Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids & CursorAdapter CursorFill()
Message
From
05/01/2011 06:32:06
 
 
To
05/01/2011 06:22:54
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:
01494752
Views:
76
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform