473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Looking for Child and Parent datagrid vb.net

77
I am looking for a way to have child and parent datagrid in my form.
Can anyone help me?
Aug 19 '08 #1
8 1652
Curtis Rutland
3,256 Expert 2GB
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
Aug 19 '08 #2
Sep410
77
Ok,Actually I had done it and I asked the same question before and no one answered. I will ask it again.
Aug 19 '08 #3
Curtis Rutland
3,256 Expert 2GB
Don't ask them again, bump your old threads back to the top by replying to them.
Aug 19 '08 #4
Sep410
77
da1.Fill(ds, "Parent")
da2.Fill(ds, "Child")
Dim DataRelation As New DataRelation("Family", ds.Tables("Parent").Columns("CaseID"), ds.Tables("Child").Columns("CaseID"), False)
ds.Relations.Add(DataRelation)
Dim dv As New DataView(ds.Tables("Parent"))
PublicDS = ds

dgSearch.DataSource = dv

'-----------datagrid
Try
dts1.MappingName = "Parent"
dgSearch.TableStyles.Add(dts1)
dgSearch.TableStyles(0).GridColumnStyles(0).Width( ) = 0
dgSearch.TableStyles(0).GridColumnStyles(4).Width( ) = 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.
Aug 19 '08 #5
Sep410
77
Ok I will do that right now.
Aug 19 '08 #6
Sep410
77
Please Help me I realy need help.
Aug 19 '08 #7
Curtis Rutland
3,256 Expert 2GB
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.
Aug 19 '08 #8
Sep410
77
Thank you.
I will do that.
Aug 19 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
1
by: muesliflakes | last post by:
I have a Data Set with parent / child related tables and wish to show the parent rows in one data grid and the child rows in another data grid. The problem is that the parent datagrid has the...
0
by: Ross | last post by:
ASP.NET Problem: I have a dataset with a parent table and a child table. For every row in the parent table there are ~1/2 dozen corresponding records in the child table. In the ASPX page I have a...
7
by: Neo Geshel | last post by:
Greetings. I have a serious problem. I have multiple sets of tables, several of which are chained more than two tables deep. That is, I have a parent, a child, and a great-grandchild table. ...
3
by: Skowronek | last post by:
What is the best method to obtain a data value from a parent datagriditem from a child datagrid - datagrid footer item command event handler? Here is the layout of my asp.net controls ...
1
by: pete matthews | last post by:
HI. I have a dataset with two tables. Table 1 is parent and table 2 is child. Am populating a single datagrid with records from child table derived from a single parent record. I am then allowing...
1
by: Aaron Smith | last post by:
I have a parent table that has one child table. The parent has a single field (ID, AutoIncrement, Seed 0, Step -1 in the DataSet, Seed 1, step 1, in DataSource). The child is linked to this ID...
11
by: Kay | last post by:
Hi all, I have populated a dataset with several tables, say - Roster, Agent and few more . The dataset is used to populated a listview with some shift info.. I think I'm sucessfully created a...
0
by: hott5hotj | last post by:
in Actionscript 3.0 Ive created a datagrid that populated with data. I want to create a pop up window to confirm whether the removal of an entry. When I call from the child object the following, I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.