Looping DataBound Controls (Iterations) RRS feed

  • Question

  • User1043796333 posted

    How is it done looping a DataBound Control: GridView, FormView and DetailView?

    How to share data among them?

    Tuesday, June 7, 2011 9:40 AM


All replies

  • User-330204900 posted

    Hi Topolove, not sure what you are asking, is this a Dynamic Data question?

    Tuesday, June 7, 2011 10:40 AM
  • User1043796333 posted

    Sure do: Dynamic Data, nothing else

    Tuesday, June 7, 2011 10:46 AM
  • User1043796333 posted

    My goal is to achieve the same cloning schema I had by using FormView instead of DetailsView which simply doesn't work because there is not an <EditItemTemplateitem

    Tuesday, June 7, 2011 10:54 AM
  • User3866881 posted


    Still not quite take your meaning.....

    Would you mind showing us your task, your aim as well your current aspx as well as your cs codes?


    Wednesday, June 8, 2011 9:49 PM
  • User1043796333 posted

    There are so many ways for iterating differents sets of information for different kinds of databound controls in ASP.Net Dynamic Data (C#). My quest is to gather "already displayed data" which is shown in yellow on your screen

    My question goes like this:

    Having you selected a row from a GridView then : How can you gather those values and pass them to a DetaislView control?

    How to fill the other control with that data

    I'm talking about passing data from a GridView selected row to the DetailsView (this happens in the ListDetails.aspx)

    I'M NOT USING FORMVIEW IN THIS CASE (If that weere the case, then e.KeepInInsertMode does the job automatically)

    BUT DetailsView is different from FormView. That's the issue

    Wednesday, June 8, 2011 10:51 PM
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 8, 2011 11:12 PM
  • User-330204900 posted

    Hi Topolov, why can't you use the FormView?

    Thursday, June 9, 2011 6:48 AM
  • User1043796333 posted

    Because the sample I'm using (DD_CascadingFieldTemplate) comes with that feature (DetailsView) instead of FormView. It is quite different from the standard version but it makes work perfectly the Filtering adn Custom Fields for cascading, which is a major achievement for me

    Thursday, June 9, 2011 8:25 AM
  • User-330204900 posted

    yes it is different it's DD with .Net 3.51 SP1 not DD4 so all the templates are old.

    Thursday, June 9, 2011 8:33 AM
  • User1043796333 posted

    sjnaughton: I had the feeling that you wewre going to provide the version 4 of DD_CascadingFieldTemplate

    Anyway, I'll check http://csharpbits.notaclue.net/2008/09/dynamic-data-and-field-templates_06.html to see if I can achieve what I already got (clonning) using FormView

    It's still not clear to me how, when and under what correct parameteres to extract the right information from a databaound control

    Thursday, June 9, 2011 10:46 AM
  • User-330204900 posted

    I don't have any cloning as I always use FormView now I will try and get cascade working on DD4 soon

    Thursday, June 9, 2011 11:52 AM
  • User1043796333 posted

    ok maybe I ask too much. I'll wait the newer version of your cascading field and filter for .net 4

    Thursday, June 9, 2011 4:47 PM
  • User-330204900 posted

    Hi Topolov, drop me an e-mail and I will add a reminder to send you a copy when it's done.

    Friday, June 10, 2011 4:08 AM
  • User1043796333 posted

    Don't worry, it'll come in due time. I'll keep on trying making my own adjustments to the EF FormView version

    It's amizing however how many changes you made to the original structure of a normal Dynamic Data project (a vanilla one as you baptized it)

    Vanilla came to be Pistachio (just kidding Yell)

    Friday, June 10, 2011 10:47 AM