Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re-binding RecordSource to grid, and ControlSources to Cols
Message
From
24/03/2004 20:51:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re-binding RecordSource to grid, and ControlSources to Cols
Miscellaneous
Thread ID:
00889474
Message ID:
00889474
Views:
56
I have a VFP 8.0 form with a Grid on it that derives it's data from a dynamic Cursor, that is re-created based on value from ComboBox selection, that is used in SQL query.

I have been having problems figuring out how to refresh the Grid with new data from this Cursor, each time the Cursor is re-generated.

I have the following code following my CURSOR statement.

Thisform.grdDrawings.RecordSource = "curDrawings"
Thisform.grdDrawings.colDwgNum.ControlSource = "curDrawings.dh_dwgnum"
Thisform.grdDrawings.colRev.ControlSource = "curDrawings.dh_rev"
....
....

I'm getting an error message: Member colDwgNum unknown. When the ControlSource line executes. Regardless, the grid appears to refresh with new Cursor data after I dismiss Error dialog.

How do I handle a clean, error-free Refresh of the Cursor-sourced grid?

Thanks,

Dbk
Don
Next
Reply
Map
View

Click here to load this message in the networking platform