Here's the simplest of scenarios. I have a Form with a few TextBoxes and a BindingSource, bound to a DataSet instance, and the TextBoxes bound to the BindingSource. Entering text in these TextBoxes doesn't raise CurrentItemChanged
event on my BindingSource; not even when I change focus to another textbox. It only fires when I move to another record, which is what one would expect from CurrentChanged
. According to MSDN:
The CurrentItemChanged event is raised in response to all of the circumstances that raise the CurrentChanged event. Additionally, CurrentItemChanged is also fired whenever the value of one of the properties of Current is changed.
Please note that I don't want to call EndEdit() because that would commit my changes.
EDIT
Here's my binding code. Now I have added OnPropertyChanged
too, without any luck.
Me.bsCatItems.DataMember = "catalog_items"
Me.bsCatItems.DataSource = Me.DsInventory
Me.bsItems.DataSource = Me.bsCatItems
Me.bsItems.DataMember = "FK_CatalogItems_Items"
Me.TextBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.bsItems, "consignment_count", True, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged))