Suppose a FDQuery
with a select
simple is connected with a DBGrid
.
I want to prevent the user from doing any editing in the registry.
I know there is a EnableDelete
option in FDQuery
, but if the user tries to delete the record, for example, FireDAC
will generate an exception.
Can you prevent editing / insertion / deletion without generating an exception?
This control can not be done in DBGrid
, it must be done in Dataset
.
More details:
- Delphi XE7
- Firebird 2.5
- I want to make a generic solution because I have this problem in
multiple screens and I use
FDQuery
in a legacy component , apply the solution in this legacy component would solve my problem in all the system screens.