Databinding multiple tables linq query to gridview?

Posted by Curtis White on Stack Overflow See other posts from Stack Overflow or by Curtis White
Published on 2010-06-03T21:04:22Z Indexed on 2010/06/03 21:34 UTC
Read the original article Hit count: 303

My question is how can I display a linq query in a gridview that has data from multiple tables AND allow the user to edit some of the fields or delete the data from a single table?

I'd like to do this with either a linqdatasource or a linq query. I'm aware I can set the e.Result to the query on the selecting event. I've also been able to build a custom databound control for displaying the linq relations (parent.child).

However, I'm not sure how I can make this work with delete? I'm thinking I may need to handle the delete event with custom code.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about linq-to-sql