title: How to loop through each and every row, column and cells in a GridView and get its value
body: <p>I have a <code>GridView</code> which is databound, on button_click I want to read the <code>GridView</code> row by row each column and read the value of each cell in a row and update a table in database? I also know how to check if that cell contains null.</p>
  
  <p>I am trying something like this and got stuck:</p>
  
  <pre><code>protected void SAVE_GRID_Click(object sender, EventArgs e)
  {
      int rowscount = GridView2.Rows.Count;
      int columnscount = GridView2.Columns.Count;
      for (int i = 0; i &lt; rowscount; i++)
      {
          for (int j = 1; j &lt; columnscount; j++)
          {
              // I want to get data of each cell in a row
              // I want to read the corresponding header and store
          }
      }       
  }
  </code></pre>