动态添加一列到DataTable的第一列

dt.Columns.Add("ROWNUM", typeof(Int64));
dt.Columns["ROWNUM"].SetOrdinal(0);
原文地址:https://www.cnblogs.com/pnljs/p/3195845.html