This isn't an appropriate question for this forum. We can help you with specific coding issues, but we don't do your homework/assignment for you here. You need to try it out yourself, and when you run into specific coding issues, come back and we will be more than willing to help. But we won't do your work for you.
da1.Fill(ds, "Parent")
da2.Fill(ds, "Child")
Dim DataRelation As New DataRelation("F amily", ds.Tables("Pare nt").Columns("C aseID"), ds.Tables("Chil d").Columns("Ca seID"), False)
ds.Relations.Ad d(DataRelation)
Dim dv As New DataView(ds.Tab les("Parent"))
PublicDS = ds
dgSearch.DataSo urce = dv
'-----------datagrid
Try
dts1.MappingNam e = "Parent"
dgSearch.TableS tyles.Add(dts1)
dgSearch.TableS tyles(0).GridCo lumnStyles(0).W idth() = 0
dgSearch.TableS tyles(0).GridCo lumnStyles(4).W idth() = 0
Catch ex As Exception
End Try
The problem is I will see the relation’s name when I click at the + beside parent name and I should click on that name and then I can see the child.
I need to see child when I click on +.
Comment