Combo box value changed event

Posted on 2011-04-28
Medium Priority
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

mrjoltcola earned 1000 total points
ID: 35485723
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

ID: 35485755
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 30

Expert Comment

ID: 35488068
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

CodeCruiser earned 1000 total points
ID: 35490724
What is the datatype(at runtime) of UltraCombobox1.SelectedItem?

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

850 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