title: Datatable updating without using datarow loop
body: <p>Is it possible to do the following:</p>
  
  <p>I have the following datatable</p>
  
  <pre><code>=================================
  ID      ||   Width  ||  Value  ||
  =================================
  size-1  ||   50     ||         ||
  name-1  ||   100    ||         ||
  zip-1   ||   50     ||         ||
  size-2  ||   50     ||         ||
  name-2  ||   100    ||         ||
  zip-2   ||   50     ||         ||
  =================================
  </code></pre>
  
  <p>I want to be able to loop through the datatable and update the value column, with the textcontrolbox.text value</p>
  
  <pre><code>Session[sectionName] = test;
  DataTable dt = (DataTable)Session[sectionName];
  
          var strIDS = from p in dt.AsEnumerable()
                       select new
                       {
                           ID = p.Field&lt;string&gt;("ID")
                       };
  
          foreach (var strID in strIDS)
          {
              TextBox tempBox = DynamicControlsHolder1.FindControl(strID.ID) as TextBox;
              string val = tempBox.Text;
  
              // This is where i want to be able to update the value column, but i can't figure out how to
              // Can someone please help
  
          }
  </code></pre>