title: How to check if FormView is empty from code behind
body: <p>How can I check if a Form View is empty from code behind? I've tried DataItemCount ==0 but it doesn't seem to work. Thanks</p>
  
  <pre><code>if (FormView_imgBG.DataItemCount == 0)
  
              { //do stuff
              }
              else 
  
              {                 
              // do other stuff
              }
  </code></pre>