Bug - Pasting into a cell while in readonly mode

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
stoffman
Newbie
Newbie
Posts: 14
Joined: Wed Dec 29, 2021 12:00 am

Bug - Pasting into a cell while in readonly mode

Post by stoffman » Tue Apr 26, 2022 12:47 pm

Hi,

I have a gird with ReadOnly set to true. While I tried to copy data from one of the cells I accidently pressed ctrl+v (paste) and got the following error:

"Dataset is read-only"

That should never happen, if the grid is in ReadOnly mode it should block any attempts to change the content from user interactions.

Configurations : Window 10, Lazarus 2.0.10
Attachments
bug.png
bug.png (47.29 KiB) Viewed 28916 times
Last edited by stoffman on Sat Apr 30, 2022 7:09 pm, edited 1 time in total.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Bug - Pasting into a cell while in readonly mode

Post by Yeray » Thu Apr 28, 2022 10:13 am

Hello,

I've tried with the example here and got a 'EDatabaseError' exception with the message:
Dbf1 : Operation not allowed, dataset "Dbf1" is not in an edit or insert state.
Not exactly the same error you reported, but enough to add it to bugzilla (#2524).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply