Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do undo and redo in a grid?
Message
From
10/10/2008 06:54:44
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
 
To
10/10/2008 03:46:45
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01353991
Message ID:
01354003
Views:
15
Hi,
Do you mean setting the record source and populating the grid from a cursor, if so see the following example
WITH THISFORM.grdYourGrid
	.RECORDSOURCE = ""
	.RECORDSOURCETYPE = 1
	.column1.CONTROLSOURCE = ""
	.column2.CONTROLSOURCE = ""
	.column3.CONTROLSOURCE = ""
	.column4.CONTROLSOURCE = ""
	.column5.CONTROLSOURCE = ""
	.column6.CONTROLSOURCE = ""
	.column7.CONTROLSOURCE = ""
	.column8.CONTROLSOURCE = ""
	.column9.CONTROLSOURCE = ""

	SELECT * FROM YourTable WHERE ACTIVE INTO CURSOR curYourCursor READWRITE ORDER BY 1

	.RECORDSOURCE = "curYourCursor"
	.RECORDSOURCETYPE = 1
	.column1.CONTROLSOURCE = "curYourCursor.Field1"
	.column2.CONTROLSOURCE = "curYourCursor.Field2"
	.column3.CONTROLSOURCE = "curYourCursor.Field3"
	.column4.CONTROLSOURCE = "curYourCursor.Field4"
	.column5.CONTROLSOURCE = "curYourCursor.Field5"
	.column6.CONTROLSOURCE = "curYourCursor.Field6"
	.column7.CONTROLSOURCE = "curYourCursor.Field7"
	.column8.CONTROLSOURCE = "curYourCursor.Field8"
	.column9.CONTROLSOURCE = "curYourCursor.Field9"

	.afterrowcolchange()
ENDWITH
>Hi all!
>I am finding a example codes for undo and redo action with a grids.
>Please give me some information about that!
>Thanks
Regards N Mc Donald
Previous
Reply
Map
View

Click here to load this message in the networking platform