Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - CursorAdapter
Message
From
30/11/2005 12:27:13
 
 
To
30/11/2005 11:59:40
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01073232
Message ID:
01073308
Views:
30
Hi!

Yes, I am doing that already but I still have to build all the columns in the grid after the CursorFill() call as I only want to show some columns, some have dropdown combo's, some have dynamic current controls etc.

Sarosh

>Sarosh,
>
>Try setting the grid.RecordSource to "" (empty string) before calling the CursorRefresh() and CursorFill().
>
>Mike
>
>>Hi!
>>
>>I have a form with two grids on it grdCustomer (Parent) and grdOrders (Child) and the grid's RecordSources are a cursors created by cursoradapters in the dataenvironment of the form.
>>
>>In the grdCustomer's AfterRowColChange Event I have tried calling the cursoradapter's CursorRefresh() and CursorFill() -ThisForm.DataEnvironment.cadOrders.CursorRefresh()/CursorFill() methods and the grid looses all its column settings because a new underlying cursor gets created each time I call CursorRefresh() or CursorFill().
>>
>>Other than saving the grids columns settings (I would not like to do this as there are many columns and many currentcontrols in columns - very complicated dynamic expressions etc.) and then restoring them after calling CursorRefresh() or CursorFill() is there any other way?
>>
>>Thanks.
>>
>>Sarosh
Previous
Reply
Map
View

Click here to load this message in the networking platform