Closed GoogleCodeExporter closed 9 years ago
LinqToExcel doesn't support the case insensitive search, but you can retrieve
all the spreadsheet rows into a list and then perform a Linq query on that list.
Here's an example of what that would look like:
var ApproversList = (from x in excel.Worksheet<FileShareApprover>().ToList()
where x.Share.Contains(fileShare, StringComparer.CurrentCultureIgnoreCase)
select x).ToList();
Notice I just added the ToList() method after calling Worksheet<>()
Original comment by paulyo...@gmail.com
on 10 Jun 2011 at 9:16
Original issue reported on code.google.com by
brett.ch...@gmail.com
on 9 Jun 2011 at 4:44