Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Grid to view and Edit data
Message
 
To
12/05/2005 17:11:18
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01013583
Message ID:
01013625
Views:
14
>The Grid ReadOnly property is set to .F.
OK, Try this in Init Event of the form:
SQLEXEC(.....) && with additional field
thisform.Grid1.RecordSourceType      = 1
thisform.Grid1.RecordSource          = "YourSPTCursor"
thisform.Grid1.ReadOnly              = .f.
thisform.Grid1.Column1.ControlSource = "YourSPTCursor.Field1"
thisform.Grid1.Column1.ReadOnly      = .f.
thisform.Grid1.Column2.ControlSource = "YourSPTCursor.Field2"
thisform.Grid1.Column2.ReadOnly      = .f.
thisform.Grid1.Column3.ControlSource = "YourSPTCursor.Field3"
thisform.Grid1.Column3.ReadOnly      = .f.
thisform.Grid1.Column4.ControlSource = "YourSPTCursor.Field4"
thisform.Grid1.Column4.ReadOnly      = .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform