This content has been marked as final. Show 4 replies
you could force a selected index using something like mydatagrid.selectedIndex=0 or 1 try this pos i made for someone beacause if you want to cange the value of field based on selection this could be simpler by using an xml file with all the value for each record in one object http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1273227&CF ID=48614795&CFTOKEN=89f80916a77a7788-F5418AD3-F360-8283-2DCCA603D0E18DCF&jsessionid=48307b ef3fdf5663544a
I appreciate the reply. However, I don't believe it addresses my problem. I don't have a problem populating the combox initially, only making it change to the proper selection based on info in a datagrid. And the code I have is setting the "selectedIndex", but it's not showing the value that is associated with the index number.
Does any one have any ideas?
It looks like you need to add a break to your for loop when it finds a positive match. This would explain why it works for the last item in your xml but fails for the others.
msstatus.selectedIndex = MSVi; //set the seletedIndex of the combo box
Masamune - Thank you for the response. That was exactly what I needed.