tag:blogger.com,1999:blog-6907873803403737979.post4532438793304761340..comments2023-10-16T12:48:46.251+01:00Comments on C# Bits: Dynamic Data Custom PageTemplates - A variation of Part 1 with the Details and SubGrid in TabsStephen J. Naughtonhttp://www.blogger.com/profile/17435527974910745156noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-6907873803403737979.post-91531990469961142912009-02-14T13:29:00.000+00:002009-02-14T13:29:00.000+00:00Could you repost this to the page the code you ref...Could you repost this to the page the code you refer to is on as I done have the time to go hunting for it. Sorry.<BR/><BR/>Have you tried the sample project at the end of the series?<BR/><BR/>Also all the code on this site is only tested with Linq to SQL at the moment (I'll try Linq to EF a bit more when v2 come out)<BR/><BR/>SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-91476998905786152902009-02-14T12:39:00.000+00:002009-02-14T12:39:00.000+00:00I always get a null exception in ChildrenGrid_Edit...I always get a null exception in ChildrenGrid_Edit at the following line:<BR/><BR/>var thisKeys = association.ThisKey.Split(seperator);<BR/><BR/>association.ThisKey is always null for all tables/fk's.<BR/><BR/>I have tried using the data futures northwind, rebuilding dc, using the 2000 northwind etc. but its always null. <BR/><BR/>Any ideas?delofordhttps://www.blogger.com/profile/05434745367890954358noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-86064151204601899222009-02-06T08:22:00.000+00:002009-02-06T08:22:00.000+00:00You need to add a validation group on for each i.e...You need to add a validation group on for each i.e. ListViewValidationGroup and GridViewValidationGRoup<BR/><BR/>Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-31188418606967721512009-02-06T05:51:00.000+00:002009-02-06T05:51:00.000+00:00Hi Steve I added the listview control (adding a de...Hi Steve I added the listview control (adding a detailsview would also be sufficient) below the gridview control of the children tables for a given parent table. However when I want to insert a new child and hit the insert button on a given tabpage from this child it causes the validation of the children. I was thinking of putting a updatepanel in the children_edit.ascx, but inserting still seems to postback all the tabpages. Do you have any suggestions?Rabinhttps://www.blogger.com/profile/00428039765347524503noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-24985413924944058022009-02-05T13:32:00.000+00:002009-02-05T13:32:00.000+00:00Sorry Rabin not sure what you mean the idea of ins...Sorry Rabin not sure what you mean the idea of inserting a new parent seems odd to me. However insert is possible in the gridviews if you combine the subGrid control described in this series with the GridView (ListView) with Insert in a later series.<BR/><BR/>Hope thsi helps :D<BR/>SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-80717668137410529562009-02-05T12:29:00.000+00:002009-02-05T12:29:00.000+00:00Is it possible to enable inserting a child when us...Is it possible to enable inserting a child when using these tabpanels for a given parent?Rabinhttps://www.blogger.com/profile/00428039765347524503noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-57294344372424762592009-02-05T12:21:00.000+00:002009-02-05T12:21:00.000+00:00Is it possible to enable inserting childrens from ...Is it possible to enable inserting childrens from a given parent?Rabinhttps://www.blogger.com/profile/00428039765347524503noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-30198800979531431392008-10-30T20:04:00.000+00:002008-10-30T20:04:00.000+00:00Hi Jwize, I don't have your e-mail address or I'd ...Hi Jwize, I don't have your e-mail address or I'd send it to you. But its in App<BR/>_Code folder in the ParentChildrenTemplateAttribute.cs file, sorry about the mixup I think I refactored the Attribute but forgot to rename the file :(. Hope this helps you :D<BR/><BR/>SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-13519899948284160532008-10-30T19:49:00.000+00:002008-10-30T19:49:00.000+00:00Can someone send me the code or the reference to t...Can someone send me the code or the reference to the assembly that contains<BR/>ShowColumnsAttribute I can't seem to find it.<BR/><BR/>Thanks, Jaimejwizehttps://www.blogger.com/profile/02428870141152444326noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-61260388105210865202008-10-28T09:44:00.000+00:002008-10-28T09:44:00.000+00:00There code will also be tidyed up and sometimes ma...There code will also be tidyed up and sometimes made a bit more elegant and I may also have fixed some minor bugs in the final version.<BR/><BR/>SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-39253660323781453302008-10-28T09:42:00.000+00:002008-10-28T09:42:00.000+00:00Yes the last will contain all the previous and wil...Yes the last will contain all the previous and will be the final.<BR/><BR/>SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-88185837820826135822008-10-27T19:58:00.000+00:002008-10-27T19:58:00.000+00:00I have the first in this series working (thanks fo...I have the first in this series working (thanks for supplying the SS2000 Adventure Works). Are these 4 projects distinct? Or is the 4th the latest and the greatest, that builds on the other 3?<BR/><BR/>Thanks,WoundedEgohttps://www.blogger.com/profile/10587474211232415755noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-73918013548566031732008-10-22T19:21:00.000+01:002008-10-22T19:21:00.000+01:00Hi Jyoo, I'll look into that tomorrow and get back...Hi Jyoo, I'll look into that tomorrow and get back to you :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-18169807503023173842008-10-22T18:59:00.000+01:002008-10-22T18:59:00.000+01:00Thanks for all the great examples! The problem I'm...Thanks for all the great examples! The problem I'm running into following your example as well as running your example is when you edit the Employees table, the default values is always the first Employee in the table. No matter which Employee I choose to edit, it grabs the Title, First Name, and Last Name of the first record. But all children records are for the correct record. I followed your example and having the same issue with my website. Do you have any solutions for this? Thanks, JamesJameshttps://www.blogger.com/profile/04264299327052947051noreply@blogger.com