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.

Regards,


Ross
ross13Asked:
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 NazirCommented:
Bind with DataSet.Tables[0] or DataSet.Tables[1] whichever is the header one. THis will show Header data only - without + sign.
0
Asim NazirCommented:
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.
0

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"), _
                 dsErrors.Tables("UD100A").Columns("KEY1"))
        dsErrors.Relations.Add(data_relation)

Me.DataGridView1.DataSource = dsErrors.Tables("UD100")
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

CodeCruiserCommented:
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).
0
Asim NazirCommented:
Or you can extend existing Grid using the approach defined here:
http://msdn.microsoft.com/en-us/magazine/cc164077.aspx
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.