title: How to check for an Empty Gridview
body: <p>I have an ASP.NET 2.0 (C#) web app, and in it I have a gridview that gets its data from an oracle database.</p>
  
  <p>I want to know how to check if the gridview is empty, and the do something. </p>
  
  <p>I have already tried:</p>
  
  <pre><code>if(GridView.Rows.Count == 0)
  {
  // Do Something
  }
  </code></pre>
  
  <p>but it doesn't work...</p>
  
  <p>Any ideas?</p>
  
  <p>Thank you.</p>