title: How to make Out-GridView show rows?
body: <p>I have a PowerShell table with 55 rows:</p>
  
  <pre><code>&gt; $ds.tables[0].rows.count
  55
  </code></pre>
  
  <p>When I display it in the command line, it displays fine:</p>
  
  <pre><code>&gt; $ds.tables[0]
  FIELD1                                    FIELD2
  ------                                    ------
  r1v1                                      r1v2
  etc                                       etc
  </code></pre>
  
  <p>However, when I try pipelining it to <code>Out-GridView</code> (<code>ogv</code>), I get a blank grid, with the two field headers, <strong>but absolutley no rows</strong>!</p>
  
  <p>How do I display the rows from my table in a PowerShell <code>Out-GridView</code>?</p>
  
  <p><strong>EDIT:</strong> As requested, here is the code:</p>
  
  <pre><code>$provider = "Provider=Search.CollatorDSO;Extended Properties='Application=Windows';"
  $sql = "SELECT top 100 System.itemname, system.itemurl FROM SYSTEMINDEX WHERE contains('frog')" 
  $adapter = New-Object System.Data.OleDb.OleDbDataAdapter -Argument $sql, $provider
  $ds = New-Object System.Data.DataSet
  $adapter.fill($ds)
  $ds.tables[0]
  $ds.tables[0] | ogv
  </code></pre>
  
  <p><strong>UPDATE:</strong> As per the comment, I checked, and the machine is running PowerShell v2.0.</p>