Hello,
I want define column to comboBox. I write this code:
private static void prvLoadCombobox(ComboBoxCellType linkCombo, ParamInfo paramInf)
{
string name;
int val;
string[] items, itemData;
items =
new string[paramInf.NumOptions];
itemData =
new string[paramInf.NumOptions];
for (int eachItem = 0; eachItem < paramInf.NumOptions; eachItem++)
{
paramInf.GetOption(eachItem,
out name, out val);
items[eachItem] = name;
itemData[eachItem] = val.ToString();
}
linkCombo.Items = items;
linkCombo.ItemData = itemData;
linkCombo.EditorValue =
EditorValue.ItemData;
linkCombo.MaxDrop =
Defines.MAX_DROP_LINKS;
}
But when using the comboBox in the first time I can open it and close it without select any item.
After the first selection always one of the option is selected.
I need that to fix the first time. How I do it?