Line 35: //Bind grid. Line 36: GridView1.DataSource = dtable; Line 37: object total = dtable.Compute("Sum(Net)", ""); Line 38: //object obj = dtable.Compute("SUM(Net)", string.Empty); Line 39: double value =Convert.ToDouble(total) ;