JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
Okay,
The Subject may be confusing, but i really couldn't come up a better header for this question.
BindingSource, Binding Navigator, DataSet, Details View
So, the Controls on the Details View all have their Databindings set to the BindingSource. The BindingNavigator has it's DataSource set to the BindingSource, and the BindingSource's Datasource is set to the Dataset. So far pretty standard. (I usually add another button to the BindingNavigator "Cancel" to Cancel any changes currently made to the dataset that have not yet been saved.)
Now the Problem:
No matter how much I Edit the Current Record, the Dataset does not recognize any "HasChanges" until I cycle the BindingSource to the Next Record. How can I effect an internal Dataset Update, so that even after changing 1 field (column) of the current record the DataSet knows that changes have been made before I cycle to the next/prev record with the bindingnavigator.
Thanks
The Subject may be confusing, but i really couldn't come up a better header for this question.
BindingSource, Binding Navigator, DataSet, Details View
So, the Controls on the Details View all have their Databindings set to the BindingSource. The BindingNavigator has it's DataSource set to the BindingSource, and the BindingSource's Datasource is set to the Dataset. So far pretty standard. (I usually add another button to the BindingNavigator "Cancel" to Cancel any changes currently made to the dataset that have not yet been saved.)
VB.NET:
sub FormTimer_tick() handlies FormTimer.Tick
Navigator.SaveButton.Enabled = DataSet.HasChanges
Navigator.CancelButton.Enabled = _
DataSet.HasChanges(DataRowState.Added Or _
DataRowState.Modified Or _
DataRowState.Deleted)
end sub
Now the Problem:
No matter how much I Edit the Current Record, the Dataset does not recognize any "HasChanges" until I cycle the BindingSource to the Next Record. How can I effect an internal Dataset Update, so that even after changing 1 field (column) of the current record the DataSet knows that changes have been made before I cycle to the next/prev record with the bindingnavigator.
Thanks