c# - Unable to cast object of type grouping to datarow after i grouped datatable with linq - Stack Overflow

PHOTO EMBED

Tue Mar 22 2022 01:23:17 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #cs

var query1 = dtClone.AsEnumerable().Select(row => row.Field<string>("department")).Distinct().OrderBy(s => s);
content_copyCOPY

https://stackoverflow.com/questions/56590444/unable-to-cast-object-of-type-grouping-to-datarow-after-i-grouped-datatable-with