title: How to get check box selected value from grid view? c#
body: <p>I want to insert specific row values based on check box click. The design and source is given below. From the design I have to select some Items. If I click approve, I have to store those check box checked row values into DB. Help me to find a proper solution.</p>
  
  <p>Design:</p>
  
  <p><img src="https://i.stack.imgur.com/uarGZ.jpg" alt="enter image description here"></p>
  
  <p>ASPX:</p>
  
  <p><img src="https://i.stack.imgur.com/q2oIJ.jpg" alt="enter image description here"></p>
  
  <p>C#:</p>
  
  <p>The given below code is getting the entire gridview value and storing into db. How can I modify this code as per above requirements.</p>
  
  <pre><code>protected void btnApprove_Click(object sender, EventArgs e)
      {
  
         ShadingAnalysisDataSetTableAdapters.tbl_ItemRequest_StatusTableAdapter rs;
         rs = new ShadingAnalysisDataSetTableAdapters.tbl_ItemRequest_StatusTableAdapter();
  
         foreach (GridViewRow row in GridView2.Rows)
          {
              string ItemName = row.Cells[0].Text;
              string Quantity = row.Cells[1].Text;
  
              rs.testInsert(ItemName, Quantity);
          }
      }
  </code></pre>