Hello everybody
Is it possible that a cell in a DBGrid be ReadOnly or not according to a condition ?
For example:
if the first column have a value of 10 then the second column will be ReadOnly.
I had tried the following code in the OnCellEnter event:
if Customer['CATEGORY'] = 10 then JustRead := True
else JustRead := False;
DBGrid1.Columns[1].ReadOnly := JustRead;
but it does not work if the user press the arrow down key.
Thanks in advance.
Walter.
Is it possible that a cell in a DBGrid be ReadOnly or not according to a condition ?
For example:
if the first column have a value of 10 then the second column will be ReadOnly.
I had tried the following code in the OnCellEnter event:
if Customer['CATEGORY'] = 10 then JustRead := True
else JustRead := False;
DBGrid1.Columns[1].ReadOnly := JustRead;
but it does not work if the user press the arrow down key.
Thanks in advance.
Walter.