With the default copy/paste behavior in the WPF DataGrid, it seems to place a newline after whatever is copied, whether it is the content of one cells or multiple rows.
Is there an easy way to make it not place that newline in the copied text?
I suppose I could do something like listening to Ctrl-C, executing the application.copy command, then replacing the data that was copied with a version that has the newline stripped off. That seems awfully messy, though. Is there a better way?
I ended up going with the messy-seeming solution I described above. It works, but it sure feels like there should be a better way of doing it. Maybe in the future they’ll add an event that hooks in at the right time to be able to edit the full clipboard contents directly before setting them.