title: Datagridview rowcount showing 0 even when there is a valid datasource
body: <p>I have a dynamically created DataGridView that has a valid DataSource with one row bound to it. However, it is returning me 0 when I am doing a rowcount on the DataGridView.</p>
  
  <pre><code>dgResult.DataSource = resultDt; // a datatable containing one row
  flowLayoutPanel.Controls.Add(dgResult); 
  int rows = dgResult.Rows.Count; // returning 0 always!
  </code></pre>
  
  <p>Can someone please tell me where I may be going wrong here?</p>