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
125
Default value of Text property for ComboEditor
posted

Hi,

I have a ComboBox control called combo that inherits from Infragistics ComboEditor control. It is used as a dropdown when there's list associated with it and as a TextBox when there is not. My question is about when it's used as a TextBox. I set the properties below:

combo.DropDownStyle = Infragistics.Win.DropDownStyle.DropDown

combo.DropDownButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Never

I also have a DataRow called dr with a column called "FieldValue". The default value of "FieldValue" is empty string. I then bind dr to combo by using

combo.DataBindings.Add("Text", dr, "FieldValue")

In our current code, the above line is supposed to trigger the ValueChanged property of our ComboBox control but it doesn't because the default value of Text property of ComboEditor is empty string (same as the FieldValue). The infragistics version I am using is 11.2.20112.2112. I also have an older version of Infragistics 11.2.20112.2019 and it does trigger the ValueChanged event. I spent some time to figure out what the differences are and found that the default value of Text property of ComboEditor in older version is Nothing so the binding process triggers ValueChanged event.

Has the default property of Text for ComboEditor changed to empty string in 11.2.20112.2112?

Thanks,

Jason

 

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Jason,

    If the behavior changed, it might be a bug. But I'd need a sample demonstrating the behavior in order to track it down. Can you post a small sample project that demonstrates the difference you are seeing in the two versions?

    If I can track it down and find out exactly why it was changed, I might be able to offer you a workaround.

Children
No Data