Solved

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

Posted on 2008-10-16
1
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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