Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - CursorAdapter
Message
From
30/11/2005 10:11:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid - CursorAdapter
Miscellaneous
Thread ID:
01073232
Message ID:
01073232
Views:
80
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
Next
Reply
Map
View

Click here to load this message in the networking platform