Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cell in grid RO/RW
Message
From
25/09/2004 07:13:12
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00945766
Message ID:
00945969
Views:
18
>>>Hi to all,
>>>
>>>I have a grid that shows the data of a table. One column shows a logical field. The column has two controls, the traditional textbox (Text1) and a checkbox (Check1). Furthermore Sparse is False. The DynamicCurrentControl is iif( somecondition, 'Text1', 'Check1' ). The textbox is ReadOnly, the checkbox is ReadWrite.
>>>
>>>The strange thing is that the cells that use the textbox are still ReadWrite. If I put T or F in it, the underlying field in the table will indeed change.
>>>
>>>Any suggestion? (I know about the When() trick, but am of opinion that it should work as I have built it now.)
>>
>>
>>Try to set Column.Bound = .F.
>
>Did not help. On the contrary, the cells are then no longer in match with the fields.

Why you merge a textBox with a checkbox into a column, both bound to the same field ?

It is not good to use a column bound to two different Baseclass control.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform