D
Dale Harris
I'm getting really strange behaviour where the data source RowState is not being updated to modified in some circumstances.
I place my controls on a form, bind them through a BindingSource control to a DataSet. If I don't do anything to the DataSet other than load data normally through TableAdapters everything works fine.
If I load a table(static data for ComboBox) in the DataSet manually; the DataSet now says it has changes. I call AcceptChanges() on the DataSet; this fixes the problem. Now, however, when my RowChange event is triggered, the data row's RowState never changes to Modified. If I remove the AcceptChanges() line when initialising the DataSet, the RowState property is updated as expected.
Can someone please help me.
I place my controls on a form, bind them through a BindingSource control to a DataSet. If I don't do anything to the DataSet other than load data normally through TableAdapters everything works fine.
If I load a table(static data for ComboBox) in the DataSet manually; the DataSet now says it has changes. I call AcceptChanges() on the DataSet; this fixes the problem. Now, however, when my RowChange event is triggered, the data row's RowState never changes to Modified. If I remove the AcceptChanges() line when initialising the DataSet, the RowState property is updated as expected.
Can someone please help me.