J
Joseph Byrns
I have a combobox to which I set the source/valuemember/display member to
the appropriate parts of a datatable. When I add a new row to the datatable
no new entry appears in the combo box (while other bound controls update
properly) :
''databind the combo
RowSelectorCB.DataSource = dboCE.Table
RowSelectorCB.DisplayMember = "DisplayMember"
RowSelectorCB.ValueMember = "DisplayMember"
''adding a new row:
Dim NewR As DataRow = dboCE.Table.NewRow
NewR("DisplayMember") = "New Row: " & MaxNewRows.ToString
MaxNewRows += 1
NewR.EndEdit()
dboCE.Table.Rows.Add(NewR)
I've also tried a RowSelectorCB.update(), but still no luck.
Anyone have any ideas?
the appropriate parts of a datatable. When I add a new row to the datatable
no new entry appears in the combo box (while other bound controls update
properly) :
''databind the combo
RowSelectorCB.DataSource = dboCE.Table
RowSelectorCB.DisplayMember = "DisplayMember"
RowSelectorCB.ValueMember = "DisplayMember"
''adding a new row:
Dim NewR As DataRow = dboCE.Table.NewRow
NewR("DisplayMember") = "New Row: " & MaxNewRows.ToString
MaxNewRows += 1
NewR.EndEdit()
dboCE.Table.Rows.Add(NewR)
I've also tried a RowSelectorCB.update(), but still no luck.
Anyone have any ideas?