DatePicker.Value.Set Error binding to datasource

后端 未结 2 1329
再見小時候
再見小時候 2021-01-19 19:15

I have a bindingsource control called binding, on a form in VS2012, and a DateTimePicker control bound to it.

for the binding properties I have MinDate = 1/01/1753

2条回答
  •  一个人的身影
    2021-01-19 19:41

    The cause of the exception may be that the DatePicker's DataBinding "Value" property has been set to a BindingSource field. Only the DatePicker's DataBinding "Text" property needs to be set for the data binding to work correctly. Check if there is a value in the DatePicker's DataBinding "Value" property field, once removed the issue should go away.

提交回复
热议问题