If you are looking to display sum of a column(salary) in the grid and if that is the case then you can use compute emthod to accomplish this..
you could check here for more info..
http://programming.top54u.com/post/ASP-Net-DataTable-Compute-Column-Sum-using-C-sharp.aspx
or else, if you wish to compute the sum based on the datatable of dataset then you need to loop through and calculate (just a sample dirty code)
for ( int i = 0; i< ds1.Tables[0].Rows.Count; i++)
totSal += ds1.Tables[0].Item[2];