ComboBox - How to Select an Item Programmatically

Oct 22, 2011 at 1:18 AM
Edited Oct 24, 2011 at 6:47 PM

Hi,

I implemented a ComboBox on a grid.  How do I programatically select a value, more specifically I want to specify the value and have the ComboBox show the associated display text.

For instance,

uValues[] = {1, 2, 3, 4, 5};

strDisplayText[] = "California", "Massachuttes", "Canada", "Nevada", "Other";

The purpose is that at runtime, when I am programmatically populating (inserting) rows, I want to be able to select the proper item in the ComboBox.

Thanks in advance,

Sarah

Update: I wound up solving on my own.