
Can some one help me to do like above image in gridview windows form .net

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
vanithaPosted Jul 17, 2014, 5:11 AM
Abhishek KumarPosted Jul 17, 2014, 2:41 AM
sum of amount for Name er should be 9. In 2nd Image it is showing 7. Is it okay?.
Regards,
Abhishek
Jignesh TrivediPosted Jul 17, 2014, 12:45 AM
hi,
I am assuming that you get the data from database.
so solution is write group by query and query result is assign to gridview Datasource.
any SQL query is
select name, sum(amount) as amount from table1
group by name
let us know if you required more information.
hope this will help you.