Subject | fields read-only in a TIB_Grid |
---|---|
Author | Duilio Foschi |
Post date | 2002-02-18T11:59:28Z |
it seems that when I declare a field as read-only in a TIB_Query (using the
FieldsReadOnly list), they become not only "not editable", but they cannot
be changed in any way.
I'd like to prevent the user from changing some fields, but I still want to
be able to change them programmatically, if needed.
Ok, I can play with the OnKeyPress event of the grid and abort when the
user tries to write in one of those fields.
But as a result I lose the nice gray color that take the read-only fields
in a grid.
Ok, I can also play with the OnDraw event of the grid etc etc.
But should one suffer so much to get such a little thing ?
Is there no other way ?
TYIA
Duilio
FieldsReadOnly list), they become not only "not editable", but they cannot
be changed in any way.
I'd like to prevent the user from changing some fields, but I still want to
be able to change them programmatically, if needed.
Ok, I can play with the OnKeyPress event of the grid and abort when the
user tries to write in one of those fields.
But as a result I lose the nice gray color that take the read-only fields
in a grid.
Ok, I can also play with the OnDraw event of the grid etc etc.
But should one suffer so much to get such a little thing ?
Is there no other way ?
TYIA
Duilio