title: Insert data from Datagridview to Datatable in C#?
body: <p>I am Capable of Inserting Data from DataGridView to Datatable using C#. But i am fail to Update the Data from Datagridview to datatable using c# windows application?</p>
  
  <pre><code>   for (int i = 0; i &lt;= dgvSpplrfrm.Rows.Count-1;i++)
          {
              drLocal = dtLocalC.NewRow();
              drLocal["splr_Slno"] = dgvSpplrfrm.Rows[i].Cells[0].Value;
              drLocal["splr_Cntctnm"] = dgvSpplrfrm.Rows[i].Cells[1].Value;
              drLocal["splr_Cntctdesig"] = dgvSpplrfrm.Rows[i].Cells[2].Value;
              drLocal["splr_Cntctmoblno"] = dgvSpplrfrm.Rows[i].Cells[3].Value;
              drLocal["splr_Cntctemail"] = dgvSpplrfrm.Rows[i].Cells[4].Value;
              dtLocalC.Rows.Add(drLocal);
          }
  </code></pre>