Try calling the refresh() method on the dataProvider collection.
Just to verify, you are using an ArrayCollection or XMLListCollection as the dataProvider, and it is [Bindable]?
It is an ArrayCollection and it is Bindable. I'll try that refresh method.
Thanks for the reply.
change dp will change the dropdown list if its bindable
but the label on the button will not change, because your selectedIndex is not changed, you can try to set
var tmpIndex:int = myCombo.selectedIndex; selectedIndex = -1; //if(tmpIndex < myDp.length) selectedIndex = tmpIndex;
to force a change event
collection.refresh() just causes any filter or sort to be re-applied. If it appears to refresh the ui, it is a side effect.
Thanks for the replies everyone. I tried the collection.refresh() method. It did not have a desired affect. It cleared the selected index of the combo. I ended upstaying with doing myCombo.text = updatedtext. Not what I wanted, but it seems to work how I need it to.