Hi,
try like below:
dt.Columns.Add("TotalProfit", type(System.Double));
dt.AcceptChanges();
foreach(DataRow row in dt.Rows)
{
row["TotalProfit"] = Convert.ToDouble(row["ActualPaid"].ToString()) - Convert.ToDouble(row["PaidAmount"].ToString());
}
dt.AcceptChanges();
you must take care of casting and default values.
hope it helps.