|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Data Relation UpdateI 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" <Flesrouy@community.nospam> schrieb I don't understand how you call addnew on a relation.> 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?? 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? 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 >
Show quote
Hide quote
"Andrew Bassett" <Flesrouy@community.nospam> schrieb I've no idea. I don't use data binding. Maybe because of these problems.> "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? 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." |
|||||||||||||||||||||||