Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 - Grid Column readonly?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00137488
Message ID:
00137502
Views:
15
>>>1) Create a table with 4 fields.
>>>2) add 4-5 records
>>>3) Create a new form using vfp6 base form.
>>>4) Add a grid
>>> a) columncount = 4
>>> b) recordsourceType = 0 (table)
>>> c) recordsource = 'your new table from above'
>>>5) Set grid1.column4.text1.readonly = .t.
>>>6) Save and run the form
>>>7) Click into column 4
>>>8) Change the record? Shouldn't this be readonly?
>>>
>>>What gives? Am I missing something here?
>>>
>>>Robert
>>
>>If you set Grid.ReadOnly=.F. (in form designer) and want to have Column.Readonly=.T. then you should set it programmatically (e.g. in Grid.Init event) even if you did it already in Form Designer.
>
>
>Edward,
>I want to edit columns 1,2 and 3. I want 4 to be read only. This is not actual data, but I am having problems where VFP5 I didn't. This is simply a test.
>
>I did try this code in the grid init:
>This.column4.text1.readonly = .t.
>
>Same problem - I can write to it all day. ?????
>Robert

I will try to test it (in VFP5) and post answer tomorrow.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform