Looking for Child and Parent datagrid vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sep410
    New Member
    • Jul 2008
    • 77

    Looking for Child and Parent datagrid vb.net

    I am looking for a way to have child and parent datagrid in my form.
    Can anyone help me?
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    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.

    MODERATOR

    Comment

    • Sep410
      New Member
      • Jul 2008
      • 77

      #3
      Ok,Actually I had done it and I asked the same question before and no one answered. I will ask it again.

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Don't ask them again, bump your old threads back to the top by replying to them.

        Comment

        • Sep410
          New Member
          • Jul 2008
          • 77

          #5
          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 +.

          Please help me.

          Comment

          • Sep410
            New Member
            • Jul 2008
            • 77

            #6
            Ok I will do that right now.

            Comment

            • Sep410
              New Member
              • Jul 2008
              • 77

              #7
              Please Help me I realy need help.

              Comment

              • Curtis Rutland
                Recognized Expert Specialist
                • Apr 2008
                • 3264

                #8
                I'd help you if I could, but I don't have any experience with DataGrids.

                Please try to limit bumping your threads to about once a day. Thanks.
                Mod.

                Comment

                • Sep410
                  New Member
                  • Jul 2008
                  • 77

                  #9
                  Thank you.
                  I will do that.

                  Comment

                  Working...