Skip to content

paste clipboard in datagrid cells

Forums Forums Superbase NG Personal paste clipboard in datagrid cells

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3416
    jaszczak
    Participant

    We’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?
    Thanks

    #3417
    Michael
    Keymaster

    It 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.

    #3418
    jaszczak
    Participant

    The 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.

    #3419
    Michael
    Keymaster

    Yes, 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).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.