Skip to content

Conversation

vojtechmusilek
Copy link
Contributor

This adds option to insert multiple items separated by new line from clipboard when selecting row and hitting Ctrl+V. It will always insert items above selected row. Old Ctrl+V behaviour is preserved, when clipboard does not contain new line it will replace existing item.

I did not find a way to make "generic" item in PasteDataGridItemFromClipboard method that would work for all 3 cases so I added a callback which requests new item to be created by the caller. Maybe there is a way to improve this code?

Also one extra case could be that text in clipboard contains new line but only single item. In that case I'm not sure what is better, inserting one new item (currently implemented) or replacing the selected item. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant