Solved

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

Posted on 2008-10-16
1
250 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now