Versions des environnements
>>>>>>When Grid.ReadOnly=.T. you should be able to click on a cell but it should be not be updatable.
>>>>>>You may also consider using AllowCellSelection=.T.
>>>>>>
>>>>>
>>>>>Exactly what I thought. And I am checking the ReadOnly property of the grid and it shows to be .T. But I can click and start making changes in any cell of the grid. I have some other forms in the application with grids and there it works as it is should; that is, you can click in a cell but not change anything. And I don't use AllowCellSelection in other forms. It must be something I am missing in my form. I will keep checking and testing.
>>>>>
>>>>>Thank you for your help.
>>>>
>>>>Just to make sure you can also do
>>>>
>>>>thisform.myGrid.SetAll('ReadOnly',.t., 'column')
>>>>
>>>>in the form's Init.
>>>
>>>Your suggestion solved the problem (hence the solution stars). I still don't understand why some of my forms do respect the Grid ReadOnly and some other don't.
>>>
>>>Thank you.
>>
>>The Grid ReadOnly doesn't mean cells readonly.
>>
>>Check Column.ReadOnly values.
>
>I realize it now. Thank you.
So if Column.ReadOnly is the setting that actually controls this, then what exactly is the purpose/use of Grid.ReadOnly? It seems that the COLUMN is is control of this, right?
.
Précédent
Suivant
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