I have a datatable called dtDealer with 2 columns called Customer, Year. I am trying to make a new datatable called dtdistinct which has an extra column called multi which shows the count for the number of duplicate rows...
dtDealer
Customer | Year
AAA 2012
BBB 2011
AAA 2012
BBB 2011
BBB 2011
BBB 2012
dtmulti
Customer | Year | multi
AAA 2012 2
BBB 2011 3
BBB 2012 1
tried with asenumerable but not working please help
AsEnumerable does work. I suspect you had an issue with grouping. I grouped by a Tuple