欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

在DataTable中執(zhí)行Select("條件")后,返回DataTable的方法

 更新時間:2007年09月10日 21:42:53   作者:  
網(wǎng)上看到一個解決方法,感覺不錯:

private DataTable GetNewDataTable(DataTable dt,string condition)
{            
            DataTable newdt = new DataTable(); 
            newdt=dt.Clone();
            DataRow[] dr = dt.Select(condition); 
            for(int i=0;i<dr.Length;i++) 
            { 
                newdt.ImportRow((DataRow)dr[i]);
            } 
            return newdt;   //返回的查詢結(jié)果
 } 

相關(guān)文章

最新評論