title: Powershell CSV Variable to Out-GridView
body: <p>This is driving me nuts. I want to save CSV text to a string <code>variable</code> - <em><strong>NOT</strong></em> <strong>a file!</strong>
  I want to then output that (CSV) text to the <code>Out-GridView</code> using the commas as column separators.</p>
  <p><strong>How do I do this?</strong> I have looked high and low, and I can find nothing - <strong>NOTHING</strong> - on how to do this <em><strong>without</strong></em> saving the text to CSV file first then importing it using <code>Import-Csv</code>. <em>I don't want to save a file</em>, I just want to display my CSV formatted multiline string object (with NewLine characters) in the <code>Out-GridView</code>.</p>
  <p><strong>Any clues?</strong></p>
  <p><strong>Example:</strong></p>
  <pre><code>$rows += &quot;COL1,COL2,COL3`n&quot;    # CSV header row AS TEXT
  $rows += &quot;val1,val2,val3`n&quot;    # CSV data row AS TEXT
  
  $rows | Out-GridView           # does not work! No columns :( - just a single column per row
  </code></pre>