|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dataset ProblemI 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 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! i am talking about the datagrid, i am talkingabout the controls such as
textboxes. If the problem remains same what should i do? Asad 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 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 > 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 Asad,
Often is this because people are using the acceptchanges wrong. Do you use the acceptchanges? Cor
To use a combo ornot
Error: Login failed for user ???? How to retrive Outlook 2003 style gradient color schemes? Copy List(Of type) to another List(Of type) Example of encryption Printing the contents of a textbox Reading a Webpage Source with Cyrillic Characters Base Class Method to use Shadow'ed member variable of Derived Class? How to pass a form control to a class for updating Writing an app for both WinForms and Console use |
|||||||||||||||||||||||