DataTable tblnew;
tblnew= dataSet.Tables[0];
// Declare an object variable.
object sumObject;
sumObject = tblnew.Compute("Sum(Debit)", "");
Label lbl = new Label();
lbl.Text = sumObject.ToString();
Error: Invalid usage of aggregate function Sum() and Type: String.