Use of Compute in DataTable to find the sum of particular column.

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 350
If we want the sum of price column then we can code like this-

dt.Compute("Sum(price)", "").ToString();


Thanks
Amatya

Comments or Responses

Login to post response