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
125
Can't change checkstate in UltraComboEditor
posted

So I have a UltraComboEditor filled with a list of names pulled from a database, when I add a new name to the database, I want to check that name off in the UltraComboEditor automatically.  I assumed that I would change the item's checkstate property, but it's not working.  Here is the code I am using:

For idx As Integer = 1 To cmbMainCNames.Items.Count - 1
    If cmbMainCNames.Items(idx).DataValue = strGlobalCName Then
          cmbMainCNames.Items(idx).CheckState = CheckState.Checked
          Exit For
    End If
Next

After the code runs, I can stop the program and check out the properties for that item and it shows that the 'CheckState' property is indeed 'UnChecked'.

Parents
No Data
Reply Children
No Data