Solved

How do I get a Datagridview to show a Parent table with additional Child Fields?

Posted on 2008-10-16
1
252 Views
Last Modified: 2012-05-05
I'm creating a windows application using C#.  I have a dataset with two tables (Parent and child).  I want to show the Parent records Plus show any related child fields for an individual parent record.  

Also, I am hand coding everything except placing the datagridview on the form.


0
Comment
Question by:Talmadge50
1 Comment
 
LVL 18

Accepted Solution

by:
Priest04 earned 500 total points
ID: 22732279
This is not possible. DataGridView does not support this, you need to use DataGrid instead. If you want to use DataGridView (since DataGrid lacks many things), then you would need to place 2 DataGridView controls, one for parent records, and one for child records, and to synchronize them.

Goran
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question