title: how to insert/add last row to sum the column with button?
body: <p>how to insert last row to sum the specific column, iam using the devexpress method by showing the footer but it's not what i expected. the first image is my grid view</p>
  
  <p><a href="https://i.stack.imgur.com/H6kvk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H6kvk.png" alt="image1"></a></p>
  
  <p>the second image is what i want</p>
  
  <p><a href="https://i.stack.imgur.com/xg0Q2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xg0Q2.png" alt="enter image description here"></a></p>
  
  <p>so the last row become one with the grid view. 
  the code i use is </p>
  
  <pre><code>private void hideOrShowTotalToolStripMenuItem_Click(object sender, EventArgs e)
      {
          if (hideOrShowTotalToolStripMenuItem.Checked ==true)
          {              
              gridView1.OptionsView.ShowFooter = true;                
              gridView1.Columns["inActive"].Summary.Add(DevExpress.Data.SummaryItemType.Count, "inActive", "{0}");
              gridView1.Columns["code"].Summary.Add(DevExpress.Data.SummaryItemType.Count, "code", "{0}");
  
          }
          else if (hideOrShowTotalToolStripMenuItem.Checked ==false)
          {
              gridView1.OptionsView.ShowFooter = false;
              gridView1.Columns["inActive"].Summary.Clear();
              gridView1.Columns["code"].Summary.Clear();
  
          }
      }
  </code></pre>
  
  <p>is there another code to be like the 2nd image?
  thanks
  (devexpres)</p>