problem with GetChanges [modified]
-
I have a problem with the GetChanges method. Here's what happens: I modify a row in my typed dataset, I do NOT call AcceptChanges nor Update. Afterwards, I call GetChanges() on my dataset and it returns null! I've made a Quick Watch on my dataset and the new value is effectively there, but the state of the modified row is Unchanged. What am I missing? Thanks! -- modified at 15:54 Wednesday 4th July, 2007 Update: the value I modify is binded to a Windows Form control (NumericUpDown). I've noticed that if I modify the value programmatically, the RowState is Modified, which is what I want, obviously. So does anybody know why modifiying a value with a GUI Control does not mark the row as Modified whereas modifying it programmatically does? Thank you!
-
I have a problem with the GetChanges method. Here's what happens: I modify a row in my typed dataset, I do NOT call AcceptChanges nor Update. Afterwards, I call GetChanges() on my dataset and it returns null! I've made a Quick Watch on my dataset and the new value is effectively there, but the state of the modified row is Unchanged. What am I missing? Thanks! -- modified at 15:54 Wednesday 4th July, 2007 Update: the value I modify is binded to a Windows Form control (NumericUpDown). I've noticed that if I modify the value programmatically, the RowState is Modified, which is what I want, obviously. So does anybody know why modifiying a value with a GUI Control does not mark the row as Modified whereas modifying it programmatically does? Thank you!