I have a DataTable with a Name column. I want to generate a collection of the unique names ordered alphabetically. The following query ignores the
DataTable
Name
Try out the following:
dataTable.Rows.Cast().select(dr => dr["Name"].ToString()).Distinct().OrderBy(name => name);