Forums › Forums › Superbase NG Personal › paste clipboard in datagrid cells
Tagged: wxforms data grids copy/paste
- This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by
Michael.
- AuthorPosts
- August 30, 2016 at 6:00 pm #3416
jaszczak
ParticipantWe’ve created several datagrids to enter data into .sbm files via our forms. When adding multiple
new records via datagrids, it sure would be nice if one could past the clipboard into a cell. That doesn’t seem to work, however. Is that beyond the capability of wxforms?
ThanksAugust 30, 2016 at 7:11 pm #3417Michael
KeymasterIt depends on what you are trying to accomplish. The grid would not know how to interpret what is on the clipboard, so if you were to place focus in a single grid cell and then use CTRL+V, I would expect all of the clipboard contents to go into that one cell. If what you want is to have several records worth of stuff on the clipboard and to paste it into the grid splitting it into the correct cells and into separate records, then it isn’t automatic, but it is certainly possible. The risk is that the clipboard format needs to match what you expect when you pull it down into a variable and then try to parse that into columns and rows.
August 30, 2016 at 8:12 pm #3418jaszczak
ParticipantThe former- simpler thing- is all I had in mind. Copy a word or two of text and past it into a single grid
cell. I now see that CTRL+V does work- but I have to double click in the cell to accept the paste. Just typing seems to automatically open the cell for accepting content. Thank you.August 30, 2016 at 8:26 pm #3419Michael
KeymasterYes, the control detects that you are typing, but it doesn’t detect the paste from the clipboard. For that you need to display the edit control (F2 works as well).
- AuthorPosts
- You must be logged in to reply to this topic.