Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Truncated output w/v3's Out-GridView results - is it avoidable?

$
0
0

[Updated to reflect that it's a v3 issue, not related to Win7 like I originally thought]

I have a script that parses a log file, outputting date/time info, errors and XML data using out-gridview. When I originally developed it, it worked great. If the XML data in a column was large, the row sizes of the gridview would expand vertically to accommodate the long string. It was nice because I could not only see the data, but I could copy it to the clipboard too.

I recently noticed that it doesn't work the same way now that I have PowerShell v3 installed on my PC. If the data in a column is particularly large, the row won't expand vertically past a certain point and the displayed data is truncated, showing ... (ellipses) instead. The data appears to be truncated in the buffer too, not just visually, because searching for data that I know exists fails if it's within the truncated portion of the string. Copying the row to the clipboard likewise only copies the abbreviated info.

Is anyone aware of a means to avoid this truncation, or if not, another control type that I can output to that is at least similar?



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>