My valuelist items are not showing up in the dropdown list of the comboboxtool. This is how I have added items to the list
ComboBoxTool tool = new ComboBoxTool();
ValueList valueList = new ValueList();
valueList.ValueListItems.Add(1, "One");
valueList.ValueListItems.Add(2, "Two");
foreach(TestObject testObject in testObjectList)
{
valueList.ValueListItems.Add(testObject.Id, testObject.Text);
}
comboBoxTool.ValueList = valueList;
It doesn't make sense to me but for some reason items "One" and "Two" show up in the drop down list but none of the items added through the for loop show up.
Nevermind. I have figured it out.