>>>>>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.
>Dmitry,
>
>In my grid's base class I set every column to ReadOnly if the grid is set to ReadOnly
>
>In the grid's init I may change a column's ReadOnly ( after the DoDefault()) if I allow input in that column
>
>I'd suggest you move the setall to the grid's base class - if you have any
Gregory,
Yes, I do have a class that builds the grid. And, I agree, it is a good idea to move the SetAll to this class. Muchas gracias por tu ayuda.
Saludos.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham