473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using related table adapters

I have been searching for a solution to this for a while now and
everything I have found has lead me down the wrong path. Any
assistance you guys could give would be much appreciated.

I would like to bind a control to an object data source control and
get data from related tables.

For example:
Categories (table)
-CategoryID
-CategoryName

Items (table)
-ItemID
-CategoryID
-ItemName

The tables are a one-many from Categories to Items on CategoryID.
My application is ASP.Net (vb.net) 2.0 using table adapters for a data
access layer and classes in a business logic layer. The DAL has a
relationship for the 2 tables.
On this page I would like to display a checkbox list of each item,
grouped together by category name. Category name will be displayed
above the group of items it describes.

I am trying to adapt the approach from this article (which is not
using table adapters):
http://msdn2.microsoft.com/en-us/library/aa478959.aspx

I have bound the top level repeater to a BLL class that returns the
Categories table and fills the Items table. At run-time the items
table is not associated as a child of the Categories table, so I
cannot access it through the object data source.

I am not married to this approach and would appreciate it if anyone
could steer me in the right direction. However, I want to avoid
joining the tables first and working with them that way. I already do
that in areas where it is very appropriate. I can see a lot of
benefits to being able to work with multiple related tables separately
in the BLL and the presentation layer without joining them first.
Thanks!

Jun 19 '07 #1
0 1101

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JH | last post by:
I have a comma delimited file and I want to export it to an MS access table already designed with appropriate field names. How do I do this programmatically using VB.NET or C#? Thanks for any...
2
by: news | last post by:
hi im new in the .net environnement i have a work to do in school im able to display a datagrid using a database in access and im also able to display a datagrid using a database in foxpro 8.0...
0
by: Bruce HS | last post by:
I'd like my VB2005 code to be able to pass my WinForm Table Adapter to an ancestor object for processing (for instance doing generic logic about saving). However, it looks like Table Adapters...
13
by: Jean Paul Mertens | last post by:
Hello, Someone can tell me why I dont get serial port events in a Service, I created a separate Thread to open the port but no events are coming up (the same happens when I use the timer...
0
by: billy.murray | last post by:
I have a system which comprises 4 servers (1 server per plant area). Each plant area server has 2 databases (Config<nand Runtime<nwhere <nis the plant area number) and 1 web application which uses...
2
by: Simon | last post by:
Hi all, Is it somehow possible to do do batched updates with table adapters in the same way you can with data adapters? I expected the methods to be much the same but apparently not. If it...
0
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I am a .NET newbie, specifically WinForms. I have a simple Winform for which I have a "How To" question: My WinForm app will display data from a FoxPro database, two tables in particular:...
0
by: jonnyc23 | last post by:
Hi I'm using table adapters and have managed to get them working with query parameters but I can't seem to find a way to do something like the following: select NodeId, Time, Data from...
4
by: dgk | last post by:
Should I dispose of table adapters and data tables and rows or do they garbage collect themselves?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.