Dynamically Creating GridView

I want to create a GridView that displays records for PDF Files. These records can have meta data attached that is customizeable by the user, so they can create their own columns and enter their own information in there. I then want it to be displayed in a GridView, so they can order each column and the column order if the column order is -1 it will not display in the GridView.

“Only arguments that can be evaluated on the client are supported for the String.Contains method”

public static void MyFunction(MyErrorClass err) { var query = from filter in DataContext.ErrorFilters select filter; query = query.Where(f => err.ErrorMessage.Contains(f.ErrorMessage)); List<ErrorFilter> filters = query.ToList(); //…more code } So I’m having some issues with the above code, and I’m getting the error from the subject line at the line with query.ToList(). Here’s what I’m trying to … Read more

Linq join on two values

Suppose I have a list of {City, State}. It originally came from the database, and I have LocationID, but by now I loaded it into memory. Suppose I also have a table of fast food restaurants that has City and State as part of the record. I need to get a list of establishments that match city and state.