.net 2.0 排序DataTable
DataView dv = dt.DefaultView;
dv.Sort =
"c1 Asc"
;
DataTable dt2 = dv.ToTable();
DataTable ShowTable = new DataTable("table");
ShowTable.Columns.Add("id", System.Type.GetType("System.String"));
ShowTable.Columns.Add("Name", System.Type.GetType("System.String"));
ShowTable.Columns.Add("NewName", System.Type.GetType("System.String"));
ShowTable.Columns.Add("DaoZhenCount", System.Type.GetType("System.Int32"));
ShowTable.Columns.Add("YuYueCount", System.Type.GetType("System.String"));
DataRow add_row =ShowTable.NewRow();
add_row[0] = ZiXunIdList.Rows[i][0];//id
add_row[1] = ZiXunIdList.Rows[i][1];//姓名
DataTable
原文:http://www.cnblogs.com/jinhaoObject/p/5304903.html