title: How to update a dataset
body: <p>In my project, there are two textBoxes, <code>txtName</code> and <code>txtPopulation</code> and a Button, <code>btnClick</code>. whenever the user clicks <code>btnClick</code>, the value in the "Population" column of the dataset <code>dsDetails</code> should get updated by the value in <code>txtPopulation</code>, where the "Name" Column is equal to <code>txtName</code>. I know this can be done using <code>rowfilter</code> or <code>select</code> but I have no idea what to implement in it. <strong>Please no linq</strong></p>
  
  <p><img src="https://i.stack.imgur.com/7M9HJ.png" alt="enter image description here">
  Currently, I am doing something like this..(<em>working</em>)</p>
  
  <pre><code>for (int intCount = 0; intCount &lt; dsDetails.Tables[0].Rows.Count; intCount++)
  {
      if (lblCountryName.Text.Equals(dsDetails.Tables[0].Rows[intCount][0].ToString()))
      {
           dsDetails.Tables[0].Rows[intCount][3] = txtPopulation.Text;
      }
  }
  </code></pre>