会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
spring yang
Making Time for the MITs (Most Important Things)
博客园
首页
新随笔
联系
管理
订阅
2011年3月4日
DataTable 排序
摘要: 方式一:DataRow[] rows = dtStart.Select("", "Createdate asc");DataTable dttwo = dtStart.Clone(); dttwo.Rows.Add(row); dtStart= dttwo ;方式二:DataView dv = dt.DefaultView;dv.Sort = "ID Asc";dt = dv.ToTable();还是第二种比较简单,适合经常用;
阅读全文
posted @ 2011-03-04 16:38 spring yang
阅读(481)
评论(3)
推荐(0)
编辑
公告