Information générale
Catégorie:
Codage, syntaxe et commandes
>>>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement