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:
00137492
Views:
18
>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 Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform