标签:round 排序 sort view strong ble nbsp back 视图
一、排序
1.获取DataTable的默认视图
2.对视图设置排序表达式
3.用排序后的视图导出的新DataTable替换就DataTable(Asc升序可省略,多列排序用","隔开)
代码如下:
dv = New DataView(dt)
dv.Sort = "id desc"
dt = dv.ToTable();
标签:round 排序 sort view strong ble nbsp back 视图
原文地址:http://www.cnblogs.com/xiangers/p/6918151.html