Home All Groups Group Topic Archive Search About
Author
4 Apr 2006 3:47 PM
asad.naeem
I have bound all the controls with a typed dataset, Data are retrieved
into the controls correctly. when i change the data in the control its
state did not change. It should be changed from Unchanged state to
Modified state. But it is not working.


Regards and Thanks in Advance
Asad

Author
4 Apr 2006 4:24 PM
BK
Just out of curiosity, are you checking to see if the data is changed
before the user goes to another row?  I posted a similar question here
not long ago.  My problem boiled down to .NET doesn't seem to see the
changes to a field in a dataset bound to a datagrid until after the
user moves off the row.  As the user moves across a row, .NET thought
the data was unchanged, even though I had modified data.

I ended up keeping a set of form level variables to track the value of
the cells.  I set the values when the user changes to a new row and
then compare the values with the respective columns in the dataset if
the user hasn't moved to a different row.  It wasn't a whole lot of
code, but it seemed rather kludgy to me.  Oh well, it worked!
Author
4 Apr 2006 4:48 PM
asad.naeem
i am talking about the datagrid, i am talkingabout the controls such as
textboxes. If the problem remains same what should i do?

Asad
Author
4 Apr 2006 5:01 PM
asad.naeem
sorry i was not talking about the datagrid.i am talkingabout the
controls such as
textboxes. If the problem remains same what should i do?

Asad
Author
4 Apr 2006 5:07 PM
VJ
Asad , you are trying to get each column changed event for a datarow.. am I
correct?

VJ

<asad.na***@gmail.com> wrote in message
Show quoteHide quote
news:1144170064.336529.325750@j33g2000cwa.googlegroups.com...
> sorry i was not talking about the datagrid.i am talkingabout the
> controls such as
> textboxes. If the problem remains same what should i do?
>
> Asad
>
Author
4 Apr 2006 5:33 PM
asad.naeem
i have a typed dataset. I have a tableA in it. there are 4 columns of
this tabeA ie, ColA, ColB, ColC, ColD.
I have four text boxes named textboxA, textboxB, textboxC, textboxD on
my form. I have bound each textbox with each column. When i retrieve
data it is OK. When i change any data in the textbox. Amazingly changed
data are reflected in the dataset column. But it state is not set to
Modified. Is there any possibility that my typed dataset is corrupted
or damaged. Or its some necessary file is missing which works for the
tables updations.

Regards
Asad Naeem
Author
4 Apr 2006 6:10 PM
Cor Ligthert [MVP]
Asad,

Often is this because people are using the acceptchanges wrong. Do you use
the acceptchanges?

Cor