Combo box value changed event

Posted on 2011-04-28
Last Modified: 2012-05-11
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.

Question by:onebite2
    LVL 40

    Accepted Solution

    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;


    Author Comment

    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.
    LVL 29

    Expert Comment

    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:
    LVL 83

    Assisted Solution

    What is the datatype(at runtime) of UltraCombobox1.SelectedItem?

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now