Send email by group from a datatable

its a group by case

On the begin also a Non-LINQ approach is presented

grafik
row in dtData.DefaultView.ToTable(True, {“IID”})
grafik

so the data will be grouped by IID column
Within the group member processing the email body can be constructed e.g. by concatenation of the group member column values or taking the datatable with only the group related rows