المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : DataSet.GetChanges() returns null after data-bound control value modified



C# Programming
03-30-2009, 09:52 PM
I have controls bound to a 1-row DataTable in DataSet myDs:

myNumericUpDown1.DataBindings.Add("Value", myDs, "tbl.field", false, DataSourceUpdateMode.OnPropertyChanged)
etc.

The data is loaded fine. I point DataTable myDt into myDs, catch the ColumnChanged event, and verify after a change that I have:

myDt.Rows[0][e.Column, DataRowVersion.Original] = 2
myDt.Rows[0][e.Column] = 4

...yet GetChanges() returns null. What dumb thing am I missing?
TIA, brian