Hello, I have a Data Table with two columns, Name and Status. Names can be repetitive, which I want to group. Statuses have 8 different values (Cancelled, Failed, In Progress, On Hold, Open, Passed, Ready, and Ready For Review). I grouped by names using:
(From p In dt_RemoveDuplicates.Select() Group p By ID=p.Item(“Name”).ToString Into Group Select Group(0)).ToArray.CopyToDataTable()
I cloned the DT and made 8 new columns of , but am unsure how to get the count of each status in each group (Cancelled, Failed, In Progress, On Hold, Open, Passed, Ready, and Ready For Review).