Last post Jun 10, 2011 10:47 AM by Topolov
Jun 07, 2011 09:40 AM|Topolov|LINK
How is it done looping a DataBound Control: GridView, FormView and DetailView?
How to share data among them?
Jun 07, 2011 10:40 AM|sjnaughton|LINK
Hi Topolove, not sure what you are asking, is this a Dynamic Data question?
Jun 07, 2011 10:46 AM|Topolov|LINK
Sure do: Dynamic Data, nothing else
Jun 07, 2011 10:54 AM|Topolov|LINK
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 <EditItemTemplate> item
Jun 08, 2011 09:49 PM|Decker Dong - MSFT|LINK
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?
Jun 08, 2011 10:51 PM|Topolov|LINK
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
Jun 08, 2011 11:12 PM|Decker Dong - MSFT|LINK
Does "An Advanced
FieldTemplate with a GridView/DetailsView Project" in "Stephen Naughton"'s blog helpful?
Jun 09, 2011 06:48 AM|sjnaughton|LINK
Hi Topolov, why can't you use the FormView?
Jun 09, 2011 08:25 AM|Topolov|LINK
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
Jun 09, 2011 08:33 AM|sjnaughton|LINK
yes it is different it's DD with .Net 3.51 SP1 not DD4 so all the templates are old.
Jun 09, 2011 10:46 AM|Topolov|LINK
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
Jun 09, 2011 11:52 AM|sjnaughton|LINK
I don't have any cloning as I always use FormView now I will try and get cascade working on DD4 soon
Jun 09, 2011 04:47 PM|Topolov|LINK
ok maybe I ask too much. I'll wait the newer version of your cascading field and filter for .net 4
Jun 10, 2011 04:08 AM|sjnaughton|LINK
Hi Topolov, drop me an e-mail and I will add a reminder to send you a copy when it's done.
Jun 10, 2011 10:47 AM|Topolov|LINK
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 )