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
1125
How to set the value of an Ultracombo to null when it's bound to a string?
posted

Hi 

I've come across a bit of odd behaviour in the ultracombo:  When it is bound to field of a nullable type (e.g. a nullable int), and AllowNulls is set to true then when you blank the combo's text via the UI the property the control is bound to is correctly set to null.  However, if the combo is bound to a string field then when you clear the text from the combo the underlying property is not updated at all.  The combo allows you to move the focus away and is blanked, but the field underneath is still retaining the original value.

Is there a way to change this behaviour?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Tom,

    I tried this out and it's working just fine for me.

    I'm attaching my sample here. The grid is there just so you can navigate the current row and see the data. But clear he comb0 and click on another grid row and you can see that the grid cell is blanked out - so the data source is being updated correctly.

    WindowsFormsApplication7.zip
Children