Copy from readonly DBGrid
Original Reporter info from Mantis: hovadur
-
Reporter name:
Original Reporter info from Mantis: hovadur
- Reporter name:
Description:
I want to copy from readonly DBGrid, as in Delphi.
Now you can not copy anything from readonly DBGrid, 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.
Mantis conversion info:
- Mantis ID: 25451
- OS: windows xp
- Version: 1.2.0RC1
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46418 (#dc348f83)
- Target version: 1.4