TStringGrid copy selection bug
Original Reporter info from Mantis: K155LA3
-
Reporter name:
Original Reporter info from Mantis: K155LA3
- Reporter name:
Description:
Hello.
If in StringGrid added colums to TGridColums and FixedRows is 0, then if select from first row and copy to clipboard, then fist cells do not copy, but copy caption of column.
Sorry, for my bad english.
Steps to reproduce:
1 Place StringGrid to form.
2 Change property FixedRows in object inspector to 0.
3 Add to TGridColums some column.
4 Select column or top cell of column and copy to clipboard (press Ctrl + C).
Then first cell copy as column caption.
Additional information:
I'm added in lcl\grids.pas in procedure TCustomStringGrid.CopyCellRectToClipboard some changes, i'm commented out this code:
// if (i=0) then
// SelStr := SelStr + Columns[k].Title.Caption
// else
because if select top cell in colum when FixedRows = 0, then first value of variable 'i' is 0.
Mantis conversion info:
- Mantis ID: 24655
- OS: Windows7; Windows XP
- Version: 1.0.8