title: Moving a column in a datatable from first to last
body: <p>I have a sql stored procedure that returns a certain group of columns in my datatable.<br>
   How can I move (let's say) the column in the first position, to the last position before I export the datatable to excel ?  </p>
  
  <pre><code>Dim myConn As New SqlConnection(strConnection)
  Dim myCmd As New SqlCommand(strSQL, myConn)
  Dim dt As DataTable = New DataTable()
  Dim da As SqlDataAdapter = New SqlDataAdapter(strSQL, myConn)
  da.Fill(dt)
  
  Dim excelPackage = New OfficeOpenXml.ExcelPackage
  Dim excelWorksheet = excelPackage.Workbook.Worksheets.Add("ProjectStatusReports")
  excelWorksheet.Cells("A3").LoadFromDataTable(dt, True)
  </code></pre>