C#datatable自定义排序,首先是一个字段,然后是其余的

时间:2017-02-28 16:24:21

标签: c# c#-4.0 datatable datacolumn

我的数据表包含以下值:enter image description here

目前我正在以这种方式排序:

customTable.DefaultView.Sort = "Module asc";

我想移动Intro是第一个包含的模块,然后从1开始按其他模块编号,我该怎么做?

1 个答案:

答案 0 :(得分:0)

使用DataTable上的Expression字段,您可以在DataTable本身中包含排序(如果您将其传递给其他使用者):

UIViewControllerAnimator
相关问题