How to get count of unique values in column2 of the datatable

@Naveen @arivu96

You can use group by here

(From row in dt.select()
Group row by Product=Convert.Tostring(row.Item(“Program”)) Into Group
Select Group(0)).ToArray.CopyToDataTable()

Regards,
Mahesh

1 Like