Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2306
Strange BindingSource problem on a DateTimeEditor(maybe a bug?)
posted

Hello everybody,

i have a dataset with 2 datatables(master detail), a binding source(bs1) that has as datasource the dataset and as datamember the first table which is the master table. On the user control i use 3 datetime editors which has the property values set to the "bs1 - columnname". Also i have another bindingsource(bs2) which has as datasource the dataset but as datamember the detail table. The bs2 is used as the datasource of an ultragrid.

Everything is working but there is a problem, really strange one!

Now, i use this usercontrol on a form, and if i enter in edit mode in a particular column of the grid and then try to close the form i get ""Cannot bind to the property or column DATA on the datasource"".

What probably happens is that the BindingContext of the form is destroyed by the time the datetime control attempts to bind to it.  Since there is no binding context, then the binding fails.

Any idea?


Thank you.