title: Get the column index in Foreach loop over datarow
body: <p>In below Foreach loop</p>
  
  <pre><code>foreach (DataRow row in dt.Rows)
  {
     foreach (DataColumn col in dt.Columns)
     {
         var val=row[col].ToString()
         var index=??
     }
  }
  </code></pre>
  
  <p>How to check if current column is last column ?</p>