I'm having an odd problem using a CurrencyManager and a bound ComboBox.
This is what I'm using to bond the combobox....
ComboBox2.DataSource = dtbl
ComboBox2.DisplayMember = "MyDate"
ComboBox2.ValueMember = "Date"
ComboBox2.DataBindings.Add("Text", dtbl, "Date")
bm = ComboBox2.BindingContext(dtbl)
All is good so far. I can navigate to records via the combobox, as well as back/forward buttons. The problem arises when I try to add a new record to the underlying datatable....
Dim NewDate As String = InputBox("Enter new date in dd/mm/yyyy format.")
CType(cm.Current, DataRowView).Row("Date") = Date.ParseExact(NewDate, "dd/MM/yyyy", Nothing)
I thought this would work perfect, but it doesn't. The [Date] field is left empty in the newly added record.
So, how do I go about inputting a value into the newly created record?