I need to club data in a datatable into a single row based on a condition in my c# page
For example

In this table i have different rows but the last three rows have the same date. I need to have the data in the table to be combined by date
ie in the rows having same date the data in the other columns have to be added like the image below

My datatable contains very huge amounts of data so can you help in solving this in less no of iterations??
I got the solution by doing this. The post of Bjorn helped me.
also I added the data from the variables to a datatable.