私は以下のようなテーブルを持っています:
col1 col2
1 20
2 40
3 60
次のようなテーブルを出力したい:
col1 col2
1 20
2 40
3 60
total 120
次のコードを使用していますが、機能しません。
object total = dtprofit.Compute("Sum(col2)", string.Empty);
前もって感謝します。