Copy from readonly DBGrid using mouse
Original Reporter info from Mantis: hovadur
-
Reporter name:
Original Reporter info from Mantis: hovadur
- Reporter name:
Description:
I want to copy from readonly DBGrid using mouse, as in Delphi.
Now you can not copy anything from readonly DBGrid using mouse, because the cell is not selected with editor.
I changed the file lcl/grids.pas in procedure
function TCustomGrid.EditingAllowed(ACol: Integer = -1): Boolean;
Instead of a line
Result:=(C<>nil) and (not C.ReadOnly);
put the line
Result:=(C<>nil);
Behavior like Delphi, but not completely: in delphi you can not cut from the cell, in lazarus you can, but cell value goes back after the jump to another cell.
This copy of the bug 0025451, but with addition of the words "using mouse". I hope so more clearly.
Mantis conversion info:
- Mantis ID: 25459
- OS: windows xp
- Version: 1.2.0RC1