General information
Category:
Coding, syntax & commands
>>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only