Home All Groups Group Topic Archive Search About
Author
2 Mar 2006 5:59 PM
Andrew Bassett
I have a datarelation between two tables and I'm having trouble making this
work. I call an addnew on the datarelation to create my new record. However,
I'm having trouble updating my child table. I haven't found any reasonable
examples to do this. Anyone have any suggestions??

Author
2 Mar 2006 8:00 PM
Armin Zingler
"Andrew Bassett" <Flesrouy@community.nospam> schrieb
> I have a datarelation between two tables and I'm having trouble
> making this work. I call an addnew on the datarelation to create my
> new record. However, I'm having trouble updating my child table. I
> haven't found any reasonable examples to do this. Anyone have any
> suggestions??


I don't understand how you call addnew on a relation.

Some links (maybe you know this already):

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconupdatingdatabasewithdataadapterdataset.asp

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcreatingdatatables.asp


In addition, there's this ADO.Net group:
microsoft.public.dotnet.framework.adonet



Armin
Author
2 Mar 2006 9:27 PM
Andrew Bassett
Essentially I have a binding source that was created off of a data relation.
When I add records I see them being added to the list however the changes
never seem to make it to the underlying dataset. Does this help clear thinsg
up?

Show quoteHide quote
"Armin Zingler" <az.nospam@freenet.de> wrote in message
news:%23wlYyWjPGHA.1216@TK2MSFTNGP14.phx.gbl...
> "Andrew Bassett" <Flesrouy@community.nospam> schrieb
>> I have a datarelation between two tables and I'm having trouble
>> making this work. I call an addnew on the datarelation to create my
>> new record. However, I'm having trouble updating my child table. I
>> haven't found any reasonable examples to do this. Anyone have any
>> suggestions??
>
>
> I don't understand how you call addnew on a relation.
>
> Some links (maybe you know this already):
>
> http://msdn.microsoft.com/library/en-us/cpguide/html/cpconupdatingdatabasewithdataadapterdataset.asp
>
> http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcreatingdatatables.asp
>
>
> In addition, there's this ADO.Net group:
> microsoft.public.dotnet.framework.adonet
>
>
>
> Armin
>
Author
2 Mar 2006 9:34 PM
Armin Zingler
Show quote Hide quote
"Andrew Bassett" <Flesrouy@community.nospam> schrieb
> "Armin Zingler" <az.nospam@freenet.de> wrote in message
> news:%23wlYyWjPGHA.1216@TK2MSFTNGP14.phx.gbl...
> > "Andrew Bassett" <Flesrouy@community.nospam> schrieb
> > > I have a datarelation between two tables and I'm having trouble
> > > making this work. I call an addnew on the datarelation to create
> > > my new record. However, I'm having trouble updating my child
> > > table. I haven't found any reasonable examples to do this.
> > > Anyone have any suggestions??
> >
> >
> > I don't understand how you call addnew on a relation.
> >
> > Some links (maybe you know this already):
> >
> > http://msdn.microsoft.com/library/en-us/cpguide/html/cpconupdatingdatabasewithdataadapterdataset.asp
> >
> > http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcreatingdatatables.asp
> >
> >
> > In addition, there's this ADO.Net group:
> > microsoft.public.dotnet.framework.adonet
>
> Essentially I have a binding source that was created off of a data
> relation. When I add records I see them being added to the list
> however the changes never seem to make it to the underlying dataset.
> Does this help clear thinsg up?


I've no idea. I don't use data binding. Maybe because of these problems.


Armin
Author
3 Mar 2006 2:40 AM
Kevin Yu [MSFT]
Hi Andrew,

This might have something to do with the data binding on the form. Did you
bind the controls correctly to the underlying DataSet? Please check the
follwing samples for more information on data binding.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpqstart/ht
ml/cpsmpnetsamples-windowsformsdatabinding.asp

You can also take a look at the following articles on data relations.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbconintroductiontodatasetrelations.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vbcode/h
tml/vbtskcodeexamplecreatingdatarelation.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."