title: Best way add a new column with sequential numbering in an existing data table
body: <p>I have a non empty datatable . What is the best way to add another column to it that has sequential numbering starting from 1.</p>
  
  <p>I tried the following code. But did not work.</p>
  
  <pre><code>DataColumn dc = new DataColumn("Col1");
  dc.AutoIncrement = true;
  dc.AutoIncrementSeed = 1;
  dc.AutoIncrementStep = 1;       
  dc.DataType = typeof(Int32);
  dt.Columns.Add(dc);
  </code></pre>
  
  <p>Will setting any expression help in this scenario ?</p>
  
  <p>Thanks in Advance </p>