I have UltraCombos that I bind at run time with a datatable. In the latest release (2034), the ValueChanged event does not fire when the selected row is cleared.
In version 11.1.20111.2026 and previous versions this worked as expected. When the selected value is clear the ValueChanged event fires. This started happening right after the upgrade to 11.2.20112.2034 with no other code changes.
Can you confirm this as a bug or are there additional settings that must be set for changing the value to nothing to fire the ValueChanged event?
Hi,
What exactly do you mean when you say "the selected row is cleared." Can you post a small sample project or even some code that shows exactly what you are doing to clear it?
Here is my code to fill the combo with data:
With cboAddressType .DisplayMember = "AddressType" .ValueMember = "AddressTypeId" If modCodePal.gbMadminUser OrElse modCodePal.NoMadminUser() Then oSQL = "Select AddressType, AddressTypeId FROM AddressTypes Order By AddressType Asc" Else oSQL = "Select AddressType, AddressTypeId FROM AddressTypes Where (AgencyId='" & modCodePal.gstrAgencyId & "' OR AgencyId IS NULL) Order By AddressType Asc" End If .DataSource = eData.GetDataTable2(GetConnectionString, oSQL) SetDropDownWidth(cboAddressType, "AddressType") .SelectedRow = .Rows(0) End With
When the form is open, I select the text that is in the display area of the combo and hit delete. In previous version, this fired the ValuedChanged event for the combo. In the latest (11.2.20112.2034) the ValueChanged event no longer fires when I hit delete nor when I tab off of the control after deleting the contents.
The combo box has had the value set to Nothing but the ValueChanged event has never fired.