Last post Dec 29, 2008 05:28 PM by sjnaughton
Dec 29, 2008 09:17 AM|Nezdet|LINK
is it possible to show to tables in one page or one gridview.
I have a Member and a Item.. deppending on what item I want then it shoudl also show the member for this item..
Howw is it possible using the Dynamicdatawebbapplication. (as you know there are already some templates)
Dec 29, 2008 01:10 PM|scothu|LINK
If you are doing Dynamic Data you would do something very similar to these steps. First you want to start off with a custom page template. You should do this for the Member table.
1) In the DynamicData directory in your application there is a CustomPages directory. Create a folder in this directory that is based on the name of your table in the datamodel.
2) Go to the DynamicData/PageTemplate directory and copy all of the templates into you new folder.
At this point you have your own set of the templates just for that one table that you can modify however you want. You could take the List.aspx page for example and add a DetailView underneath the GridView and have its DataSource control display the record
from the Item table based on the SelectedIndex of the GridView. This is just basic ASP.NET databinding.
Let me know if you need more detail.
Dec 29, 2008 02:30 PM|Nezdet|LINK
Is it possible to choose which tables that should be used and possible to edit or add new items..
Dec 29, 2008 05:28 PM|sjnaughton|LINK
Hi have a look at these articles here on my blog:
Custom Page Templates