Click here to Skip to main content
16,017,235 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use compute function of datable to get sum and avg of column group by to available columns in dataset and give result like query to bind this to an gridview.

e.g
I have result of query with 13 columns and I have to show these result according columns select by User from list.

of which if user have selected suppose following columns

empID varchar(200),
emp_Name varchar(200),
Performance numeric(8,2)

and now i have datatable of above mentioned columns

so here I have to calculate sum of Performance according to other columns in the table so how should i do it?
I need result again to assign datasoure to gridview

If you have other solution then please share.
Posted
Updated 19-Sep-11 2:36am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900