General information
Category:
Coding, syntax & commands
>>>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
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