Gabriel Posted October 29, 2018 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 Quote
Sherzod Posted October 30, 2018 Posted October 30, 2018 Hello, Can you explain in more details once again ? Quote
Sherzod Posted October 30, 2018 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? Quote
Sherzod Posted October 30, 2018 Posted October 30, 2018 20 hours ago, Gabriel said: copy and paste them in another grid In the same application ? Quote
Gabriel Posted October 30, 2018 Author 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 Quote
Sherzod Posted October 30, 2018 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' } } Quote
Gabriel Posted October 30, 2018 Author 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 Quote
Gabriel Posted November 6, 2018 Author Posted November 6, 2018 I wasn't able to adapt the code. ¿Does anyone have any idea on how to perform this? Regards Quote
Gabriel Posted June 10, 2019 Author Posted June 10, 2019 Hi, does anyone know any way to do this? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.