Answered by:
Dynimac Data Application - two tables

Question
-
User1906504752 posted
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)
Monday, December 29, 2008 9:17 AM
Answers
-
User660823006 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 29, 2008 1:10 PM
All replies
-
User660823006 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 29, 2008 1:10 PM -
User1906504752 posted
Is it possible to choose which tables that should be used and possible to edit or add new items..
??
Monday, December 29, 2008 2:30 PM -
User-330204900 posted
Hi have a look at these articles here on my blog:
-
Custom Pages Part 1 - Standard Custom Page based on an existing PageTemplate and customised in the DynamicData\CustomPages folder.
- Custom Pages Part 2 - A completely Custom Page again in the DynamicData\CustomPages folder.
- Custom Pages Part 3 - Standard ASP.Net Page with Dynamic Data features added to take advantage of the FieldTemplates.
- Custom Pages Part 4 - A DetailsView and a GridView using Validation Groups
- Custom Pages Part 5 - I18N? Internationalisation Custom Page
And
- Your First FieldTemplate.
- An Advanced FieldTemplate.
- A Second Advanced FieldTemplate.
- An Advanced FieldTemplate with a GridView.
- An Advanced FieldTemplate with a DetailsView.
- An Advanced FieldTemplate with a GridView/DetailsView Project.
And
- Custom PageTemplates Part 1 - Custom PageTemplates with Ajax Control Toolkit Tabs
- Custom PageTemplates Part 2 - A variation of Part 1 with the Details and SubGrid in Tabs
- Custom PageTemplates Part 3 - Dynamic/Templated Grid with Insert (Using ListView)
- Custom PageTemplates Part 4 - Dynamic/Templated FromView
Monday, December 29, 2008 5:28 PM -