473,322 Members | 1,522 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,322 software developers and data experts.

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 4238
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 thread has been closed and replies have been disabled. Please start a new discussion.

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...
0
by: Chad Folden | last post by:
I can't figure out how to use the EditCommand for the nested datagrid .. HELP PLEASE ;-) It works perfectly for the parent datagrid, but will not display, even though the EditCommand event is...
2
by: Stephen Miller | last post by:
I am using the OnItemDataBound event of Repeater control to nest a DataGrid within the Repeater. When I attempt to bind to the DataGrid using the DataSource method I get the error message "Object...
4
by: Steve Klett | last post by:
(I posted this in ADO group, but I think this group will be better) Hi- I need to develop an FAQ section for our website. We would like to break up the FAQ by products, then categories with...
2
by: Josh | last post by:
Hi Guys, I have been stuck on this problem for several days now, i have a set of nested datagrids. Inside the second datagrid i have a dropdown list, a textbox and a label. I want the textbox...
1
by: Jabco | last post by:
I need a grid that displays hierachical related tables. The grid's DataSource is a dataset. Maybe there is a better way I don't know. There are 2 tables in the dataset. They have a Relations on...
5
by: BMeyer | last post by:
I have been losing my mind trying to parse an XML document (with nested child elements, not all of which appear in each parent node) into a DataGrid object. What I want to do is "flatten" the XML...
0
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any...
2
by: Me LK | last post by:
I have a set of drop downs nested in a datagrid. Each drop down is a size or color for an item. Each row of the grid has a button which leads to a cart. When a user selects something from the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.