Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid : RecordSourceType / RecordSource
Message
From
03/03/2003 22:09:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid : RecordSourceType / RecordSource
Miscellaneous
Thread ID:
00760719
Message ID:
00760719
Views:
62
I am trying to use a cursor (ReadWrite) as the RecordSource for a grid with RecordSourceType = 1 (Alias).

At design-time the grid's RecordSource property will occasionally change to a Table from the desired cursor. When I change this property back to the desired cursor, it also resets (clears out) all of the Grid Column ControlSources.

What am I doing wrong ????

PS. The cursor is created in both the Main.Prg (before any Forms are invoked) and also in the Form's DataEnvironment BeforeOpenTables event using the following SQL statement:
SELECT cLineNo, cPart, cDescript, cColor, nQty, cLength, cStatus ;
	FROM OrDetail ;
	INTO CURSOR curCurrentOrder ;
	WHERE cLineNo = "1" ;
	READWRITE
*- This will always result in the selection of one row.
Next
Reply
Map
View

Click here to load this message in the networking platform