hiya,
No, I'm not databinding it via the editor.
yes, I am sure that it is grabbing the previous value.
For example, just to test, I grabbed the value when the selectedIndex changes, and it is fine.
private void dTimePickerDelivery_ValueChanged(object sender, EventArgs e)
{
// so the value DOES change
string currValue = dTimePickerDelivery.Value.ToString();
}
However, when I add a new item to an entityCollection which is related to the delivery..then it seems that the dTimePickerDelivery databindings seem to be setting it to the previous value
Below is how the datePicker is originally bound:
dTimePickerDelivery.DataBindings.Clear();
dTimePickerDelivery.DataBindings.Add(new Binding("Value", this.parentBindingSource, dalStock.TblDeliveryFieldIndex.DeliveryDate.ToString(), true));
Does this make it any clearer?What can I do to toubleshoot this?
Many thanks,
yogi