TrDBGrid - read-only edit mode

13 views
Skip to first unread message

Marian Nykel

unread,
Apr 2, 2026, 10:41:10 AMApr 2
to Rosi Delphi Components
Hi,
is it possible to enable edit mode on cell, but in read-only mode (user cannot make any changes to content but is allowed to copy a part of text in cell)?

Thanks, MN

Tomas Rosinsky

unread,
Apr 6, 2026, 11:48:35 AMApr 6
to Rosi Delphi Components
Hi Marian,

rDBGrid as well as standard DBGrid does not show editor for read only dataset.
But it is possible to hack it in following way:

- use dataset in NOT read only mode, so rDBGrid can activate editor
- add event for dataset BeforeEdit + BeforeInsert + BeforeDelete and add call  ABORT method in all these events, then editing is not started

I hope it helps
Best regards
Tomas

Dne čtvrtek 2. dubna 2026 v 16:41:10 UTC+2 uživatel Marian Nykel napsal:
Reply all
Reply to author
Forward
0 new messages