Let me start by saying that I am very new to WPF and LINQ and try my best to study it while working on a project with him at work (do you hate to learn things on the fly and the project before the deadline!). Anyway, I have an employee list window that is bound in the code behind to the ObservableCollection. The data source for the collection is a LINQ query of type IQueryable.
What I'm trying to do is show the format LastName + "," + FirstName in the list, and I'm not sure how to do it. It will be easy to display and does not affect the data. I tried using the new syntax for LINQ, however it does not work, because the query returns IQueryable, and the field does not belong to Employee. The objects in the list must be Employee objects, because they can be saved back to the database or transferred to other lists in the form for various reasons.
I'm not sure where to go here, and I'm sorry if I don't make myself very clear. If you have any questions about what I need to do, try away and I will try to answer. Thanks!
source
share