title: How to get count rows in AspxGridView?
body: <p>I have a Gridview.I want to get count of Status=1 and Status=0 rows</p>
  
  <pre><code>    Id    Bla    Bla     Bla  Status
  
      1                         1 
      27                        0
      323                       1
  
  &lt;dx:ASPxGridView runat="server" ID="grid" Width="100%" &gt;
              &lt;Columns&gt;
  
           some colums
  
           ...
  
           ...
  
  &lt;/dx:GridViewDataTextColumn&gt;
   &lt;dx:GridViewDataTextColumn Caption="Status" FieldName="Online"&gt;
                  &lt;/dx:GridViewDataTextColumn&gt;    
          &lt;/Columns&gt;
  &lt;/dx:ASPxGridView&gt;
  </code></pre>
  
  <p>How can I get counts ? </p>
  
  <p>I want to display like this</p>
  
  <pre><code>  lblOnline.Text="Online Dealers : "+  countOnline.ToString();
    lblOffline.Text="Offline Dealers : "+ countOffline.ToString();
  </code></pre>