PC Review


Reply
Thread Tools Rate Thread

DataGrids with Multiple tables

 
 
edwardo2005
Guest
Posts: n/a
 
      2nd Aug 2007
Hi, I want to have a DataGrid with two columns - 1 from one table and
one from another. The tables are linked by a key from the 2nd to the
first. I am using a DataSet in .Net and the tables are in the DataSet
and there is a relationship between that tables in the DataSet. I have
been able to get a column populated with data from one table, but I
don't see how to reference the 2nd table. Is this possible?

 
Reply With Quote
 
 
 
 
Terry Olsen
Guest
Posts: n/a
 
      2nd Aug 2007
Look at the JOIN statement. That should help you do what you need.

"edwardo2005" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, I want to have a DataGrid with two columns - 1 from one table and
> one from another. The tables are linked by a key from the 2nd to the
> first. I am using a DataSet in .Net and the tables are in the DataSet
> and there is a relationship between that tables in the DataSet. I have
> been able to get a column populated with data from one table, but I
> don't see how to reference the 2nd table. Is this possible?
>



 
Reply With Quote
 
Earl
Guest
Posts: n/a
 
      4th Aug 2007
With the dataset and the related tables, you already have most of the
ingredients to do it properly. Use an expression column from the related
table. A join would just screw up your update/insert command objects.

"edwardo2005" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, I want to have a DataGrid with two columns - 1 from one table and
> one from another. The tables are linked by a key from the 2nd to the
> first. I am using a DataSet in .Net and the tables are in the DataSet
> and there is a relationship between that tables in the DataSet. I have
> been able to get a column populated with data from one table, but I
> don't see how to reference the 2nd table. Is this possible?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Datagrids to scroll through Microsoft VB .NET 4 4th Aug 2005 08:42 AM
multiple datagrids Microsoft Dot NET 1 3rd Aug 2005 02:36 PM
page formatting problem with tables and datagrids - especially printing mark Microsoft ASP .NET 2 9th Jun 2004 09:32 AM
Re: One DataSet to Multiple DataGrids William Ryan eMVP Microsoft C# .NET 0 11th Apr 2004 09:59 PM
Navigating DataGrids: How to access information in Child Tables Gregory Persson Microsoft ADO .NET 1 14th Jul 2003 04:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 AM.