我有一个 DataTable,在该表中我有 2 列 Task_Name 和 Hours。
Task_Name Hours
-----------------
Proj1 2
Proj2 3
Proj1 3
Proj1 2
Proj2 5
现在我最终想要的是我想要一个 DataTable 这将导致: -
Task_Name Hours
------------------
Proj1 7(addition of hours related to Proj1)
Proj2 8(addition of hours related to Proj2)
我希望我的问题很清楚.. 我该怎么做..??