Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier

后端 未结 4 840
傲寒
傲寒 2021-01-13 08:38
DataTable distinctTable = dTable.DefaultView.ToTable(true,\"ITEM_NO\",\"ITEM_STOCK\");
DataTable dtSummerized = new DataTable(\"SummerizedResult\");

dtSummerized.Co         


        
4条回答
  •  臣服心动
    2021-01-13 09:24

    You might try this:

    dTable.Compute("sum([" + TotalItem + "])","");
    

    I.e enclose your column name in square brackets [ ]

    The idea is from this post.

提交回复
热议问题