Hello there
When I tried to get the DataValue of the first CheckedItem in my UltraComboEditor I get an IndexOutOfRange Error.
I used the following code to access the DataValue:
return cboPriority.Items.ValueList.CheckedItems[0].DataValue;
However, I discovered that there is a value not being initialized by call this line of code. In order to access the CheckedItems[0] I needed to call this line first:
int couter = cboPriority.Items.ValueList.CheckedItems.Count; // initializes an internal value
I am astonished what could be the reason for this issue. For me it seems to be a bug? Hope you can help me more.
Best regards
Samuel Egger
Hello Samuel,
I tried this and it works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.