Data Relation Update

  • Thread starter Thread starter Andrew Bassett
  • Start date Start date
A

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??
 
Andrew Bassett said:
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
 
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?
 
Andrew Bassett said:
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
 
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."
 
Back
Top