Combo box value changed event

I have a ultra combo box populated through a list
  Dim subcategorylist As BusinessLogic.Lists.TaskSubCategoryList = BusinessLogic.Lists.TaskSubCategoryList.GetList(Me.ConnectionString, _Task.CategoryListID)

It has a value member and display member ......
I need to show  some warnings depending on the value when user select each item in combo box ,value for each item is different .All this hsould be done in value changed event.

How to iterate through the list and get the exact value for each item??

I appreciate if some one can show sample code.

Who is Participating?
mrjoltcolaConnect With a Mentor Commented:
Assuming your Task class (or whatever your databound class is) has your Warning property, do something like this. Create the SelectedIndexChanged event...

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
            MyItem item = comboBox1.SelectedItem;

onebite2Author Commented:
there is no warning property .I have 5 rows coming through list.If the selected item in the combo is same as one of the row in the list I will check the value property and throw the warning.
This is a ultra combo so I don't have selected item property ,instead I am checking forcombo text value.
onebite2, when you ask questions it would be useful if you tell what kind of control you are using. What is "ultra combo box"? It's not native MS control. My guess - it might be an Infragistics control. But may be something else, some third party control most people never heard about :) That's why people do not know about specific properties etc.

If it is Infragistic - try to check on their web site:
CodeCruiserConnect With a Mentor Commented:
What is the datatype(at runtime) of UltraCombobox1.SelectedItem?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.