X
XmlAdoNewbie
Hi All,
I am new to c# .net and also new to ado .net and databindings. In my
application i create a dataset from an xml file and then databind the
values to controls on my form. An interesting thing happens when i
update the values on the form and i am wondering if i am doing
something wrong or if this how databindings works.
If i change the value of the control from within the control the
databinding updates the dataset as it should with no problems but if i
change the value of the control in code for instance TextBox1.text =
"Hello World"; it does not update the dataset and i actually have to
say ds.tables["mytable"].rows[0]["Column"] = "Hello World"; for it to
actually show up in the dataset. It seems to me that having to update
the dataset directly completely negates the reason i have used the
dataset in the first place... am i correct in saying this?? or am i
doing something wrong?
Thanks
Erin
I am new to c# .net and also new to ado .net and databindings. In my
application i create a dataset from an xml file and then databind the
values to controls on my form. An interesting thing happens when i
update the values on the form and i am wondering if i am doing
something wrong or if this how databindings works.
If i change the value of the control from within the control the
databinding updates the dataset as it should with no problems but if i
change the value of the control in code for instance TextBox1.text =
"Hello World"; it does not update the dataset and i actually have to
say ds.tables["mytable"].rows[0]["Column"] = "Hello World"; for it to
actually show up in the dataset. It seems to me that having to update
the dataset directly completely negates the reason i have used the
dataset in the first place... am i correct in saying this?? or am i
doing something wrong?
Thanks
Erin