Nested Tables in DataGrid in Windows Form

  • Thread starter Thread starter SR
  • Start date Start date
S

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
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top