开发者

DataTable sort by sum of columns

开发者 https://www.devze.com 2023-02-16 13:11 出处:网络
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 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

精彩评论

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