Occurs when the current item has been altered.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The event occurs only when the item itself has been changed in some manner. For example, if the value of an item is changed from 10 to 42, the event will occur. This should not be confused with the PositionChanged event where the item has been changed to a new item.
The event will also occur if the underlying data changes. For example, if you change the value of a DataRowView, the event will occur.
If you are creating your own control that uses the CurrencyManager, you should use the IBindingList.ListChanged instead of the event. The ListChangedType property of the ListChangedEventArgs enables you to determine the type of action that has occurred.
For more information about handling events, see Handling and Raising Events.
The following code example adds event handlers for the and PositionChanged events.
Private Sub BindControl(myTable As DataTable) ' Bind A TextBox control to a DataTable column in a DataSet. textBox1.DataBindings.Add("Text", myTable, "CompanyName") ' Specify the CurrencyManager for the DataTable. myCurrencyManager = CType(Me.BindingContext(myTable, ""), CurrencyManager) ' Add event handlers. AddHandler myCurrencyManager.ItemChanged, AddressOf CurrencyManager_ItemChanged AddHandler myCurrencyManager.PositionChanged, AddressOf CurrencyManager_PositionChanged ' Set the initial Position of the control. myCurrencyManager.Position = 0 End Sub 'BindControl Private Sub CurrencyManager_PositionChanged(sender As Object, e As System.EventArgs) Dim myCurrencyManager As CurrencyManager = CType(sender, CurrencyManager) Console.WriteLine(("Position Changed " & myCurrencyManager.Position)) End Sub 'CurrencyManager_PositionChanged Private Sub CurrencyManager_ItemChanged(sender As Object, e As System.Windows.Forms.ItemChangedEventArgs) Dim myCurrencyManager As CurrencyManager = CType(sender, CurrencyManager) Console.WriteLine(("Item Changed " & myCurrencyManager.Position)) End Sub 'CurrencyManager_ItemChanged