Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataSet and BindingSource

$
0
0

This is probably a trivial question, but it has me stumped.

I have a DataSet that is associated with a BindingSource which is associated with a BindingNavigator all on a winform application in order to give users the ability to cycle through items.

What I'm trying to do is respond to certain events and manually update some fields in the DataTable.

What I expected would happen is that the GUI (textboxes) would then reflect these new values. However, unless I call EndEdit() or ResetBindings() on the BindingSouce this isn't happening.

I'm assuming that until the DataRow is updated by calling EndEdit() on either the DataRow or the BindingSource and therefore fires off ListChanged that the BindingSource isn't aware of these changes?

I would have thought that the BindingSource would be aware of any changes be they "Proposed" or "Current".


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>