Hi,
I am trying to add an UltraCombo with multi-select capabilities to my grid.
So far I've successfully created the multi-select UltraCombo by implementing the CheckedListSettings property, allowing me to select multiple items from the drop down and displaying the selected items separated by a separator character.
However, I'm running into a problem when updating objects in the binding list the UltraComb is bound to. Specifically, if I change the property value of one of the bound objects UltraCombo no longer selects the updated object.
Is there a way to change object properties in the binding list a UltraCombo is bound to and have the UltraCombo's display/value to also reflect the updates?
Thank you
I've attached a sample project to demonstrate the issue:
The data source for the UltraCombo is the list of phone numbers on the left grid. Select a few numbers in the UltraCombo on the right grid then update the value of any of the selected numbers. Not only do the renamed numbers disappear from the UltraCombo they can no longer be selected.
4113.UltraComboMultiSelect.zip
Hello Steven,
I have tested the multi-select UltraCombo behaviour when updating the bound list of objects using the sample you provided.
When you select values that just sets the Combo's Value to an object array of the selected DataValues of those items. If you then change the list so that value no longer exists, the Value of the combo now contains values that are no longer on the list. It doesn't automatically update the control value. You really shouldn't be changing the list like this. There's no way for the grid to know that the list changed. And even if it did, it would have to go through every cell that happened to be using the same data source and it would be horribly inefficient.
To resolve this issue you can try going through the grid and fix-up the data manually if the list value changes. However, I recommend not changing the list like this as manually changing every cell that could have been potentially affected will hinder the efficiency.
Please let me know if you have any questions.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer