J
Joseph Byrns
I have a listbox that is bound to a DataTable as follows:
Me.JobListBox.DisplayMember = "DisplayMember"
Me.JobListBox.ValueMember = "GUID"
Me.JobListBox.DataSource = dTable
Simple enough, when I add a row to dTable the list box updates and displays
the row, when I remove a row from dTable, the row is likewise removed from
the listbox, all as expected so far. However, when I alter the
DisplayMember column of a row in the datatable the listbox is NOT updated
with the new DisplayMember.
Dim r As DataRow = dTable.Rows(0)
r("DisplayMember") = "New Display Member"
r.EndEdit() ''tried it without this, but I get the same result.
Anyone have any ideas?
Me.JobListBox.DisplayMember = "DisplayMember"
Me.JobListBox.ValueMember = "GUID"
Me.JobListBox.DataSource = dTable
Simple enough, when I add a row to dTable the list box updates and displays
the row, when I remove a row from dTable, the row is likewise removed from
the listbox, all as expected so far. However, when I alter the
DisplayMember column of a row in the datatable the listbox is NOT updated
with the new DisplayMember.
Dim r As DataRow = dTable.Rows(0)
r("DisplayMember") = "New Display Member"
r.EndEdit() ''tried it without this, but I get the same result.
Anyone have any ideas?