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

Master Detail Question

Hi all
i have a create a relation between two tables, and both of then have
Autonumbers ( Sql ), since i have the Datarelation, i create a new record in
the master table, and a few in the detail table. so far so good all work as
i expected. ( when i create de details rows , all then have the key for the
relation )

but when i do the update using my sqldataadapter like this

Me.DataAdapter.Update(Tabela)
i = Me.DataAdapterTipoDetalhes.Update(TabelaDetalhes)

the second dataadapter doesnt update,
so i have try the TabelaDetalhes.GetChanges and it returns nothing. but
before i update the master table it returns the new rows ??
anyone can assist me ???
thks
JSB

PS in my opinion, the problem is when i update the master table the second
changes the state of all rows that i have inserted.
Nov 20 '05 #1
3 900
Please do not cross-post.
"Joăo Santa Bárbara" <jo**************@mail.telepac.pt> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all
i have a create a relation between two tables, and both of then have
Autonumbers ( Sql ), since i have the Datarelation, i create a new record in the master table, and a few in the detail table. so far so good all work as i expected. ( when i create de details rows , all then have the key for the relation )

but when i do the update using my sqldataadapter like this

Me.DataAdapter.Update(Tabela)
i = Me.DataAdapterTipoDetalhes.Update(TabelaDetalhes)

the second dataadapter doesnt update,
so i have try the TabelaDetalhes.GetChanges and it returns nothing. but
before i update the master table it returns the new rows ??
anyone can assist me ???
thks
JSB

PS in my opinion, the problem is when i update the master table the second
changes the state of all rows that i have inserted.

Nov 20 '05 #2
Cor
Hi Joao

The state of the changes in a dataset is done by
datasetx.acceptchanges

Maybe you do that to early

Cor
PS in my opinion, the problem is when i update the master table the second
changes the state of all rows that i have inserted.

Nov 20 '05 #3
Cor
Hi Joao

The state of the changes in a dataset is done by
datasetx.acceptchanges

Maybe you do that to early

Cor
PS in my opinion, the problem is when i update the master table the second
changes the state of all rows that i have inserted.

Nov 20 '05 #4

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

Similar topics

8
by: Raphael Gluck | last post by:
Hi Everyone I am having some problems with a master detail page i have set up to catalogue brochures from my site. On my master page www.tripakltd.com/brochures.asp users are invited to select...
1
by: Jim Bob | last post by:
I Have a form with two datagrids bound to two tables in a dataset. The top datagrid is a master and the one below it is a detail. I want to be able to click on a row in the master and fire an...
8
by: Christopher Weaver | last post by:
I'm having the hardest time doing the simplest thing. I have a DataGrid bound to a table in a master detail DataRelation within a DataSet relTaskActivities = new DataRelation("TaskActivities",...
2
by: Marcel | last post by:
Hi, I'm new to VS and ASP.NET and have a question about master/detail datagrids. I have a master datagrid filled with data via a component that contains a SQL adapter. Now I would like to fill...
12
by: Gary Brower | last post by:
Hi, I am using VB.Net to create an ASP web form. My goal is to create a master/detail web form that allows users to create new master and detail records. For example the form would have header...
2
by: HS1 | last post by:
Hello all I followed the example in Visual Studio.net to create a master and detail relationship as following: two tables: Customers and Orders two DataGrid: GridOrders and GridDetails...
3
by: sqlboy2000 | last post by:
Hi, I've just started playing around with master / detail pages and I'm trying to simply change the detail page displayed in the contentplaceholder control from code behind. I can't seem to find...
1
by: Sam | last post by:
Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetai... 2) View Source URL:...
0
by: Mike Wilson | last post by:
Dear group, I have an invoice entry form, which is a simple Master fields / Detail grid. The main summary information of the invoice are stored in one table in a dataset, which is bound using a...
2
by: John | last post by:
Hi I am trying to create a master/detail form. I have my master and details tables dragged onto the dataset. I have also dragged the fields from master table on the form which has created the...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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...

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.