vb.net dataset / datagrid

I have a dataset that i need to bind to a datagrid. I have two datatables in the dataset a header and a detail table.
What i want to try and do is to display the data from the header in the datagrid but have the + sign next to that item.
When the user selects this they are able to see the detail entry.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Asim NazirProject ManagerCommented:
Bind with DataSet.Tables[0] or DataSet.Tables[1] whichever is the header one. THis will show Header data only - without + sign.
Asim NazirProject ManagerCommented:
If you want to show + sign with data from detail then you need to create a relationship b/w two tables.  You can check http://msdn.microsoft.com/en-us/library/ms171915(v=vs.80).aspx to see how to create relationship.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ross13Author Commented:
I have tried adding a relationship but i still dont get the + sign

        Dim data_relation As New DataRelation("Parent_Child", dsErrors.Tables("UD100").Columns("KEY1"), _

Me.DataGridView1.DataSource = dsErrors.Tables("UD100")
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

The datagridview does not provide this functionality. You would need to either implement it yourself or buy a third party control. Devexpress has the XtraGrid which is a fantastic control (i am a user not salesman).
Asim NazirProject ManagerCommented:
Asim NazirProject ManagerCommented:
Or you can extend existing Grid using the approach defined here:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.