Hi There,
I have a windows form that uses binding through a currency manager. A
dataset fills tan Adapter and everything thing is good in life. A list box
gets populated with a list of names and that works good, whenever I click on
a item on the list box the data on the side updates.
This is the problem that I'm getting though, When I change some data on the
right, let's say the lastname or first name that does not get reflected on
the listbox, for that, I have included this code on the
currencymanager_itemchanged event.
Private Sub mCurrencyManager_ItemChanged(ByVal sender As Object, ByVal e As
System.Windows.Forms.ItemChangedEventArgs) Handles
mCurrencyManager.ItemChanged
Dim combined_name As String
Dim data_row As DataRow
combined_name = txtLastName.Text & ", " & txtFirstName.Text
data_row = mCurrencyManager.Current.Row
If data_row.Item("FullName") & "" <> combined_name Then
data_row.Item("FullName") = combined_name
End If
End Sub
The thing is, this code should fire up whenever I change and item on the
currencymanager right? but It does not, it ignores it totally.
Can anybody tell me what Am I doing wrong here? give me some hints on how I
can accomplish this?
Thanks in advance.
Manny