473,404 Members | 2,213 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,404 software developers and data experts.

two datasets (Master-detail) problem

I got an invheader and invdetail in one datasetl with the foreign key to
link up.
It display in two separate datagrid, now If i only want to insert one
record in invheader, as I process daInv.update()
It warns me that I need to fill invdetail also...
Do I need to create another dataadaptor .dataset for invheader again ??

Thanks
Nov 20 '05 #1
4 1094
Agnes,

Relation questions are always difficult to answer because we do not know on
what places you have set all the relations and explaining it is almost
impossible mostly.

However when you have used the commandbuilder, than probably two
dataadapters is the most simple to use in this kind of operations, otherwise
you have to build the dataadatapter everytime as new, what would mean as
well minimal two different dataadapters. However it depends very much on
your programlogic how you do it.

I hope this helps?

Cor
I got an invheader and invdetail in one datasetl with the foreign key to
link up.
It display in two separate datagrid, now If i only want to insert one
record in invheader, as I process daInv.update()
It warns me that I need to fill invdetail also...
Do I need to create another dataadaptor .dataset for invheader again ??

Thanks

Nov 20 '05 #2
I should ask my problem in another way. I got serveral textbox, and one
button .As the user input the data and press button, the data should be
displayed in the datagrid.
However, (I check the database, the records is really inserted. but the
datagird got nothing change in run-time)
I did fill(dsInvoice) again , and dgInvoice.tablestyles.clear() , and then
new the tablestyles again.
But it doesn't help ~~~
"Cor Ligthert" <no**********@planet.nl> ¦b¶l¥ó
news:uv**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
Agnes,

Relation questions are always difficult to answer because we do not know on what places you have set all the relations and explaining it is almost
impossible mostly.

However when you have used the commandbuilder, than probably two
dataadapters is the most simple to use in this kind of operations, otherwise you have to build the dataadatapter everytime as new, what would mean as
well minimal two different dataadapters. However it depends very much on
your programlogic how you do it.

I hope this helps?

Cor
I got an invheader and invdetail in one datasetl with the foreign key to
link up.
It display in two separate datagrid, now If i only want to insert one
record in invheader, as I process daInv.update()
It warns me that I need to fill invdetail also...
Do I need to create another dataadaptor .dataset for invheader again ??

Thanks


Nov 20 '05 #3
I think I am too tired .... and did something wrong about my code . I know
where is my problem
Please ignore the question ~~
"Agnes" <ag***@dynamictech.com.hk> ¦b¶l¥ó
news:O5*************@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
I should ask my problem in another way. I got serveral textbox, and one
button .As the user input the data and press button, the data should be
displayed in the datagrid.
However, (I check the database, the records is really inserted. but the
datagird got nothing change in run-time)
I did fill(dsInvoice) again , and dgInvoice.tablestyles.clear() , and then
new the tablestyles again.
But it doesn't help ~~~
"Cor Ligthert" <no**********@planet.nl> ¦b¶l¥ó
news:uv**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
Agnes,

Relation questions are always difficult to answer because we do not know

on
what places you have set all the relations and explaining it is almost
impossible mostly.

However when you have used the commandbuilder, than probably two
dataadapters is the most simple to use in this kind of operations,

otherwise
you have to build the dataadatapter everytime as new, what would mean as
well minimal two different dataadapters. However it depends very much on
your programlogic how you do it.

I hope this helps?

Cor
I got an invheader and invdetail in one datasetl with the foreign key to link up.
It display in two separate datagrid, now If i only want to insert one
record in invheader, as I process daInv.update()
It warns me that I need to fill invdetail also...
Do I need to create another dataadaptor .dataset for invheader again ??
Thanks



Nov 20 '05 #4
OK can happen to everybody.

:-)

Cor
I think I am too tired .... and did something wrong about my code . I know
where is my problem
Please ignore the question ~~

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jorl Shefner | last post by:
I have a problem that I run into a lot with the 'legend' command's default behavior. I've found a work-around but I wonder if there's a better way. For a simple example, take the following:...
1
by: Steven Blair | last post by:
Hi, Here is a short decsription of my problem. I have written a dll for Database accessing. I have one method which can return a Dataset and another method which takes a Dataset and upates a...
4
by: Girish | last post by:
Im trying to create a grid within a grid programmatically. Ive been successful in doing this but I need the embedded grid to fire its ItemDataBound event so I can handle it. The event does not seem...
7
by: Girish | last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a huge learning experience.. My problem. I have a requirement to display a gird with a gird. Within the embedded grid,...
2
by: Ken C | last post by:
I've setup a Master detail table from a typed dataset on 2 different data grid The first one I bind it with the Master data table name The second data set I bind it with the MasterDetail...
1
by: Engineerik | last post by:
dfjhsqd asked this earlier in the week and I have the same question. How can I apply a filter to the Master table when using two datagrids in a MasterDetail relationship?
5
by: JC Voon | last post by:
Hi: I have two combo boxes on screen that when one's selection is change the other's items will be updated to reflect the change dtMaster = .... ds.Tables.Add(dtMaster)
9
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
0
by: S.Tedeschi | last post by:
Hi all; as posted some days ago, I'm converting an on-line app; I used to heavily rely on strongly-typed DataSets directly dropped onto pages, and so viewed by code(-behind) as well. In the next...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.