Problems with binding the DateTimePicker controls.
Hi,
I am having problems in binding the DateTimePicker controls. I have bound three DateTimePicker controls' "Value" property to three different fields in the database. They work fine as far as displaying data is concerned. But when the user clicks the New button in my form I say,
this.BindingContext[dsInvoice, tableInvoiceName].AddNew();
In this particular case, this statement works fine only if I remove the bindings for the DateTimePicker controls. i.e. if I keep their binding, the controls don't become blank after this particular statement is executed.
Please give me a soln. for this.
Thanks and Regards,
Manoj.
|