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
1560
Issue with an empty string.
posted

I have an ultraCombo.

Let's say it's binded to a name property.

when the name is empty (string.empty), it will display the value of ValueMember. Which I don't want. I want it to just display a string.empty.

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    I'm not sure I understand. It sounds like you have a list of IDs and display texts, so you are using ValueMember and DisplayMember. But then you are binding the Text property of the Combo to a name field? That doesn't make sense - you should be binding the ValueMember field, the Id, not the text.

    I tested this out, binding the combo to a list of IDs and display texts and then setting the text to an empty string (which is what binding the Text property would do) and it works just fine for me.

     

Reply Children