Hi masters,
i have some doubts on c# data grid view in windows form
how to acheive this on below case ,please advise me

Hi masters,
i have some doubts on c# data grid view in windows form
how to acheive this on below case ,please advise me

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 21, 2024, 7:01 AM EDT
Hello Rajadurai,
Please use below query(add other fields in your query, here I have added few for example), You can achieve using sql query by doing sum of quantity field
SELECT id, unit, area, Line, idenCode, Category, SUM(Quantity) AS TotalQuantity FROM YourTableName GROUP BY id, unit, area, Line, idenCode, Category;