We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to databind

Thread ID:

Created:

Updated:

Platform:

Replies:

142025 Jan 15,2019 02:21 PM UTC Jan 17,2019 09:20 AM UTC WinForms 3
loading
Tags: SfDateTimeEdit
Nathan Cole
Asked On January 15, 2019 02:21 PM UTC

All,

I have an SfDateTimeEdit control in a userform and would like to bind the data to a binding source.  I keep getting an system.arguementexception.  



I am adding the following binding when the datasource is changed for the binding source.

(VB.NET CODE)

RestDate.DataBindings.Clear()
ResetDate.DataBindings.Add(New Binding("Value", bsData, "fsrSysInfoServoResetDate", True, DataSourceUpdateMode.OnPropertyChanged)).

This same binding technique works for all my other syncfusion controls.  What am I doing wrong?  Any help would be appreciated!

Thanks,
Nathan

Jagadeesan Pichaimuthu [Syncfusion]
Replied On January 16, 2019 06:03 AM UTC

Hi Nathan,  
 
Thanks for using Syncfusion product. 
 
We have checked your query “ArgumentException occurs when binding the text in SfDateTimeEdit using Databinding” and conformed that it is already a known issue, it occurs due to validation. Since the value of Value property of SfDateTimeEdit is updated using Databinding.  SfDateTimeEdit expecting CancelEventHandler(which is modified as Validating event handler in SfDateTimeEdit). Due to unavailability of cancel event handler, the reported exception occurs. We have fixed this issue and SfDateTimeEdit will not handle the validation of date values in Validating event. Now, we have introduced new event DateTimeValidating and you can use DateTimeValidating event to validate the value in SfDateTimeEdit. The fix for the issue will be included in our upcoming Nuget release on today (16th January 2019).  
 
Regards, 
Jagadeesan 


Nathan Cole
Replied On January 16, 2019 12:29 PM UTC

Thank you for the update.

Jagadeesan Pichaimuthu [Syncfusion]
Replied On January 17, 2019 09:20 AM UTC

Hi Nathan, 

Sorry for the inconvenience.  

As we already mentioned, we have fixed this issue and SfDateTimeEdit will not handle the validation of date values in Validating event. Now, we have introduced new event DateTimeValidating and you can use DateTimeValidating event to validate the value in SfDateTimeEdit. The fix for the issue will be included in our upcoming Nuget release on 22nd January 2019. 

Regards, 
Jagadeesan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;