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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to make SFComboBox display error message that comes from error provider

Thread ID:

Created:

Updated:

Platform:

Replies:

151357 Feb 7,2020 02:41 PM UTC Feb 11,2020 01:54 PM UTC WinForms 3
loading
Tags: SfComboBox
Vasyl Shepelyov
Asked On February 7, 2020 02:41 PM UTC

Hi, I can't figure out how to make SFComboBox display error message that comes from error provider. 

I have SFComboBox on my form called sfCboId and error provider called epPurchaseOrders.
After I added error provider, few new properties appeared in the combo box property window in form designer. One of these properties is "Error on epPurchaseOrders". It's a text property and when I type something there, it just displays error icon and exactly the text I typed. But when I add native winforms controls (textbox, combobox, etc) that are bound to the same field, they display actual error message which is brought by IDataErrorInfo via epPurchaseOrders.

So how can I achieve the same behavior for SFComboBox? It doesn't matter if programmatically or via form designer (I use Visual Studio 2019).

Thank you.


Vasyl Shepelyov
Replied On February 8, 2020 04:10 AM UTC

While experimenting further I have found the resolution - selectedvalue of my combobox was originally bound to object property. When I did the following, it started working:
- added bindingsource to the form 
- bound bindingsource to my object
- bound selectedvalue of combobox to bindingsource's property (not to object's property directly).

Duraimurugan Vedagiri [Syncfusion]
Replied On February 10, 2020 12:58 PM UTC

Hi Vasyl, 
 
Thanks for using syncfusion product. 
 
We are validating the reported scenario. We will update you the further details on or before February 12th 
 
Regards, 
Durai 


Duraimurugan Vedagiri [Syncfusion]
Replied On February 11, 2020 01:54 PM UTC

Hi Vasyl,

Thanks for your patient.

As of Febuarary 9th post, you have found the solution for reported query. We're really pleased about that.

We have analysed the reported query and we couldn't able to reproduced.

We have prepared simple sample based on your requirement. Please refer from the following location:

https://www.syncfusion.com/downloads/support/forum/151357/ze/SfComboBox171161256 

If the solution is does not meet your actual requirement or need any other assistance, could you please share the detailed description about your requirement with modifying our sample. so that it could be helpful to provide the solution at the earliest.

Regards,
Durai 


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

Live Chat Icon For mobile
Live Chat Icon