C# DataTable行转列实现方法

public DataTable RowsToCol(DataTable DT)
{
       try
        {  
                      int  rowCount=DT.Rows.Count;
                      int  columnsCount=DT.Columns.Count;
                      DataTable result=new DataTable();
                      DataTable RowsDT=new DataTable();
                      DataTable COLSDT=new DataTable();
                      for(int i=0;i 
 

你可能感兴趣的:(学习之路,C#,DataTable行转列,DataTable)