ASP.Net 4.5 Model Binding Sorting By Navigation Property
All, I have a grid view that has the following columns. The paging work great, but not sorting. Everytime I click on the Category column to sort by category I would get this error: Instance property 'Category.CategoryName' is not defined for type 'ESA.Data.Models.Entity.Project' This error statement is not true because the gridview was able to display the column correctly. Here is the select method public IQueryable<Project> getProjects() { ApplicationServices objServices = new ApplicationServices(); IQueryable<Project> lstProject; lstProject = objServices.getProjects(); return lstProject; }