469,642 Members | 1,217 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,642 developers. It's quick & easy.

Nested Tables in DataGrid in Windows Form

SR
Plz Help

I have a dataset which has tables area,goals,objectives,tactics
each area can have many goals,each goal can have many objectives,each
objectives can have many tactics

they are related wuth there respective ids

now the problem comes when in i am showing then in nested datagrid i
add all the relation it shows fine when i show all the table but when i
want to show specific goals in the one area (some goals from that area
not all goals) then the relation between goals and objectives gives
error says that there is no corresponding entry in goals for all
objectives so i tried using filter which doesn work

plz help i have all data in dataset i want to apply filter in onr of
the table (goals) so how can i do that...........

SR

Nov 17 '05 #1
1 4068
Hi,

I think you should use properly established relations in the DataSet instead
of filters. DataGrid is capable of properly handling relations, so you can
click [+] on a parent row and see all child rows.

In your example, obviously, a relation must exist between the area and its
goals (each goal must reference a parent area).

Does this answer your question?

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"SR" <su*************@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Plz Help

I have a dataset which has tables area,goals,objectives,tactics
each area can have many goals,each goal can have many objectives,each
objectives can have many tactics

they are related wuth there respective ids

now the problem comes when in i am showing then in nested datagrid i
add all the relation it shows fine when i show all the table but when i
want to show specific goals in the one area (some goals from that area
not all goals) then the relation between goals and objectives gives
error says that there is no corresponding entry in goals for all
objectives so i tried using filter which doesn work

plz help i have all data in dataset i want to apply filter in onr of
the table (goals) so how can i do that...........

SR


Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chad Folden | last post: by
2 posts views Thread by Stephen Miller | last post: by
4 posts views Thread by Steve Klett | last post: by
2 posts views Thread by Josh | last post: by
1 post views Thread by Jabco | last post: by
2 posts views Thread by Me LK | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.