Gabriel Posted October 29, 2018 Share Posted October 29, 2018 (edited) Hello, It is posible with a UniStringGrid to select several rows (2 cols max) , copy and paste them in another grid? I was searching and i find the option to select multiple rows, and multiple cols. But It was not posible to copy the content. What i'm try to achieve is the same behaviour that is posible with an xls document. Regards Edited October 30, 2018 by Gabriel Update the content with more info Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2018 Share Posted October 30, 2018 Hello, Can you explain in more details once again ? Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2018 Share Posted October 30, 2018 20 hours ago, Gabriel said: I was searching and i find the option to select multiple rows, and multiple cols. How? Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2018 Share Posted October 30, 2018 20 hours ago, Gabriel said: copy and paste them in another grid In the same application ? Link to comment Share on other sites More sharing options...
Gabriel Posted October 30, 2018 Author Share Posted October 30, 2018 Hello, I attach the project (sample project) 4 minutes ago, Sherzod said: How? By enabling the following options: 2 minutes ago, Sherzod said: In the same application ? Yes, but on different screens. In the sample project, there are two grids. I want to copy something from the one on top to the one on the bottom. 8 minutes ago, Sherzod said: Hello, Can you explain in more details once again ? Of course, sorry if I'm not being clear. Basically, the idea is copy information (the content of every cell) from one grid to another using CTRL + C, CTRL + V, both grids are exactly the same, the number of columns, properties, etc. Regards Gabriel TestUniStringGrid2.zip Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2018 Share Posted October 30, 2018 Well, we can use this SelectionModel to start I think, and analyze some methods (getSelected for example): https://docs.sencha.com/ext/6.5.3/classic/Ext.grid.selection.SpreadsheetModel.html UniStringGrid1 -> ClientEvents -> UniEvents -> function beforeInit(sender, config) { config.selModel = { type: 'spreadsheet' } } Link to comment Share on other sites More sharing options...
Gabriel Posted October 30, 2018 Author Share Posted October 30, 2018 Doing some research, I've found this: http://developerextensions.com/extjs-5-excel-copypaste-grid-demo. But for the moment I was unable to "translate" it to Delphi Link to comment Share on other sites More sharing options...
Gabriel Posted November 6, 2018 Author Share Posted November 6, 2018 I wasn't able to adapt the code. ¿Does anyone have any idea on how to perform this? Regards Link to comment Share on other sites More sharing options...
Gabriel Posted June 10, 2019 Author Share Posted June 10, 2019 Hi, does anyone know any way to do this? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now