开发者

DataTable sort by sum of columns

I want to order a datatable by the sum of it's columns, e.g.

dtSummary.DefaultView.Sort = "(Calls Closed + New Calls Triaged + Overdue Calls Triaged) As开发者_Go百科c";

I guess I could do this by adding an extra column and computing the sum values before the sort, but wondered if there was a simpler way to acheive this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜