g.First()
returns object of type DataRow
. Then you are calling ToString()
which returns the type name System.Data.DataRow
. At the end you have a list of type names.
If you want to select a particular column, then project group of rows into value of some field of (first) row:
g.First().Field<string>("FieldName")
Or you can use grouping key if you want to return values of Job_No
filed:
List<string> c_strLSetTitle = Order.AsEnumerable()
.GroupBy(r => r.Field<string>("Job_No"))
.Where(g => g.Count() > 1)
.Select(g => g.Key).ToList();
That will return values of duplicated Job_No
fields.