I have a DataTable which has 5 columns:
The DataTable contains 5 rows.
If you have a ADO.Net DataTable you could do
int sum = 0; foreach(DataRow dr in dataTable.Rows) { sum += Convert.ToInt32(dr["Amount"]); }
If you want to query the database table, you could use
Select Sum(Amount) From DataTable