Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i used
ds.Tables(0).Compute("sum(Quantity)", "group by ORI_No")
to group and sum Quantity
then
it is showing error

Missing operand after 'by' operator

plz help me....
Posted

1 solution

The second string parameter is used for filtering rows, not for grouping. Have a look at DataTable.Compute[^]

If you want to group the results, I would suggest using LINQ.
 
Share this answer
 
v2

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