Click here to Skip to main content
16,021,823 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

I have this query

SQL
select Team_Leader ,items ,Sum(qty) as Total_Qty,avg(Rate) as Average_Rate FROM [Material_database].[dbo].[mat_utiAndtrans] m, [Material_database].[dbo].[code] c where c.Codes=m.code group by Team_leader ,items


I need to bind database using this query to my datagridview.... can anyone help me do this with coding help.
Datagridview should be like

Team_Leader items Total Qty Average_Rate


Thanks
Posted

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