Use LINQ, to Sort and Filter items in a List<ReturnItem> collection, based on the values within a Li
- by Daniel McPherson
This is tricky to explain.
We have a DataTable that contains a user configurable selection of columns, which are not known at compile time. Every column in the DataTable is of type String. We need to convert this DataTable into a strongly typed Collection of "ReturnItem" objects so that we can then sort and filter using LINQ for use in our…