首页 > 代码库 > How to use dt.Rows.Cast<System.Data.DataRow>().Take(n)

How to use dt.Rows.Cast<System.Data.DataRow>().Take(n)

参考文章:http://stackoverflow.com/questions/2787458/how-to-select-top-n-rows-from-a-datatable-dataview-in-asp-net

 

 

 

DataTable dtPage = dt.Rows.Cast<System.Data.DataRow>().Skip(pageSize * (page - 1)).Take(pageSize).CopyToDataTable();

 

How to use dt.Rows.Cast<System.Data.DataRow>().Take(n)