2009年1月2日

不使用“DataSourceControl DataSource”的情况下如何分页和排序

摘要: If youset AllowPaging="true" orAllowSorting="true" on a GridView control withoutusingaDataSourceControl DataSource (i.e. SqlDataSource,ObjectDataSource), you will run into the following errors:When changing the page on the GridView control:The GridView 'GridViewID' fired 阅读全文

posted @ 2009-01-02 22:54 goodvify 阅读(155) 评论(0) 推荐(0) 编辑

[转]利用.NET中的反射机制实现IList到DataTable的转换

摘要: public static DataSet ListToDataSet(IList ResList){ DataSet RDS=new DataSet(); DataTable TempDT = new DataTable(); //此处遍历IList的结构并建立同样的DataTable System.Reflection.PropertyInfo[] p = ResList[0].GetType().GetProperties(); foreach (System.Reflection.PropertyInfo pi in p) { TempDT.Columns.Add(pi.Name,Sy 阅读全文

posted @ 2009-01-02 22:52 goodvify 阅读(113) 评论(0) 推荐(0) 编辑

导航