StringGrid paste problem lazarus / 8-Other ---------------------------------------------------------------------- IndianaJones · 2009-03-14 21:24 Hi all, I copied 2 columns from the excel sheet and tried to paste to the StringGrid but nothing happened. Is there a way to paste to the StringGrid component or this is the incomplete feature. Thanks Win32 SVN 18598 ---------------------------------------------------------------------- Bart · 2009-03-15 11:38 Does htis work in Delphi then? Bart ---------------------------------------------------------------------- IndianaJones · 2009-03-15 21:17 Sorry, I havent tested with the Delphi. ---------------------------------------------------------------------- Leledumbo · 2009-03-16 04:17 I don't think it's done automagically. You should have a handler that watches on Ctrl+V or Paste command and do the paste manually. Why? Because AFAIK StringGrid is not a base component, it's composed from buttons and list(or edit)boxes (possible other components). Win32 API provides basic handler (cut, copy, paste, etc.) only for basic components (CMIIW). ---------------------------------------------------------------------- jesusr · 2009-03-16 06:53 Lazarus StringGrid do support Copy & Paste from Excel and Open Office Calc, the only requisite is that grid needs goEditing option (and grid editor should not be visible otherwise the paste might ends there) ---------------------------------------------------------------------- IndianaJones · 2009-03-16 15:02 JesusR, Thanks for the info, it works like a charm.