Last post Sep 25, 2008 05:30 PM by luxlucis
Sep 24, 2008 12:49 PM|luxlucis|LINK
is there a way to show a gridview on the Details.aspx page with all "children" from a many to many relationship?
In the Northwind example, I would like to show a gridview (or even better, a checkbox list) with all the Territories related to the selected Employee (fetched from the EmployeeTerritories table). The next step would then be editing the relationship (hence
the checkbox list). I think that this approach adds much more usability than browsing around links and looking at gridviews that show employees and territories
I'm using Linq to SQL (not the EF).
Sep 24, 2008 03:46 PM|sjnaughton|LINK
An easy way to do this with the northwind example is to create a calculated property on the EmployeeTerritory entity that reaches out accross the relationship to the Territory entity for the description. Also I'm in the middle of an article that automatically
lists all children tables in side a ajax tabbed control, this will be on my
blog somtime tomorrow [:D]
Hope this helps [:D]
Many to Metadata
Sep 24, 2008 05:55 PM|luxlucis|LINK
Could you please provide an example of this calculated property?
Sep 24, 2008 06:31 PM|sjnaughton|LINK
Download and have a look at this project here DD_FT_MtoNcustom.zip
Sep 24, 2008 06:46 PM|luxlucis|LINK
Sep 25, 2008 08:30 AM|sjnaughton|LINK
Sep 25, 2008 05:30 PM|luxlucis|LINK
Thumbs up Steve [cool]! Keep up the good work, your blog is probably the most informative and up to date place for dynamic data.