ross13
asked on
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
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
Bind with DataSet.Tables[0] or DataSet.Tables[1] whichever is the header one. THis will show Header data only - without + sign.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I have tried adding a relationship but i still dont get the + sign
Dim data_relation As New DataRelation("Parent_Child ", dsErrors.Tables("UD100").C olumns("KE Y1"), _
dsErrors.Tables("UD100A"). Columns("K EY1"))
dsErrors.Relations.Add(dat a_relation )
Me.DataGridView1.DataSourc e = dsErrors.Tables("UD100")
Dim data_relation As New DataRelation("Parent_Child
dsErrors.Tables("UD100A").
dsErrors.Relations.Add(dat
Me.DataGridView1.DataSourc
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.