Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
UltraComboEditor - CheckedItems
posted

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