would like group the table like below
Employee Date. Email
99899. 09/15/2024. Abc@test
99899. 09/16/2024. Abc@test
99899. 09/17/2024. Abc@test
89768. 09/15/2024. Anc@test
89768. 09/16/2024. Anc@teat
Employee . Email Date
99899. Abc@test. 09/15/2024,09/16/2024,09/17/2024
89768. Anc@test. 09/15/2024,09/16/2024
FinalDT = ((From row In InputDT.AsEnumerable()
Group row By emp = row("Employee"), email = row("Email") Into Group
Select FinalDT.Rows.Add(emp, email, String.Join(",", Group.Select(Function(g) DateTime.Parse(g("Date").ToString()).ToString("MM/dd/yyyy"))))).CopyToDataTable()