ASP.NET
愤怒的小黑狗
路漫漫其修远
展开
-
使用DataTable分页
public static DataTable SplitDataTable(DataTable dt, int PageIndex, int PageSize) { if (PageIndex == 0) return dt; DataTable newdt = dt.Clone();转载 2015-01-16 10:28:41 · 296 阅读 · 0 评论 -
DataTable导出Excel
public void DataSetToExcel(DataTable ds, string path) { long totalCount = ds.Rows.Count; //Thread.Sleep(1000); StreamWriter sw = new StreamWriter(path,转载 2015-01-16 10:23:44 · 321 阅读 · 0 评论 -
ILIST<t>转换成DataTable
public static DataTable ToDataTable(IList list, params string[] propertyName) { List propertyNameList = new List(); if (propertyName != null) {转载 2015-01-16 10:26:14 · 341 阅读 · 0 评论