Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCopy Paste not supported from selected records in gridview output window #30
Comments
|
https://github.com/PowerShell/GraphicalTools/blob/master/src/OutGridView.Gui/Views/DataGridView.xaml#L23 would seem to indicate there's a copy mode. Setting it to ExcludeHeader as per the docs results in an exception when you try to copy:
Noting that the value changes based on which line you try to copy, we might need to add a handler or something for it. |
|
@corbob do you think we could get an issue going on Avalonia for this? |
|
@TylerLeonhardt I don't think an issue is happening with Avalonia, everything that I'm seeing indicates that even with WPF you need to create your own Copy handler, I just can't seem to get it to work (hence the question in discord about attaching a debugger). I'll spend some time on Monday trying to get a copy handler. |
In original out-GridView output window, records could be selected and then copied to the clipboard to paste into emails or spreadsheets. This no longer appears to be possible under the current implementation. This issue is similar to issue #23 .
WorkAround Available: I found I could accomplish what I needed in the short term with the following, but the output window is dismissed, so multiple subsequent selections are not possible from the same output window.
... | Out-GridView -PassThru | convertTo-HTML | clip.exe