| Name | Count | Time |
| A | 5 | 1/1/2017 10:00:00AM |
| B | 4 | 1/1/2017 10:00:00AM |
| C | 5 | 1/1/2017 10:00:00AM |
| D | 2 | 1/1/2017 10:00:00AM |
| E | 3 | 1/1/2017 11:00:00AM |
| F | 3 | 1/1/2017 11:00:00AM |
| G | 4 | 1/1/2017 11:00:00AM |
| H | 5 | 1/1/2017 11:00:00AM |
| I | 2 | 1/1/2017 12:00:00AM |
| J | 3 | 1/1/2017 12:00:00AM |
| K | 5 | 1/1/2017 12:00:00AM |
| L | 6 | 1/1/2017 12:00:00AM |
I Want to add the count column if the Time in column is same. (Ex:)The time (1/1/2017 10:00:00AM) Same for A,B,C,D. So i want to add the count column of A,B,C,D .How to do this .please help me to solve this issue.

Amit GuptaRank #190 · 12.8K reputationPosted Feb 7, 2017, 9:38 PM EST
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Feb 7, 2017, 9:44 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Feb 7, 2017, 9:55 PM EST
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Feb 7, 2017, 10:01 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Feb 7, 2017, 10:24 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 7, 2017, 11:12 PM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 7, 2017, 11:28 PM EST
dt.AcceptChanges();
dt= dt.AsEnumerable().GroupBy(r => r.Field