Page 1 of 1

Bug - Pasting into a cell while in readonly mode

Posted: Tue Apr 26, 2022 12:47 pm
by 18692679
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

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

Posted: Thu Apr 28, 2022 10:13 am
by yeray
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).