C1ComboBox. In first time, SelectedItem at the end of list

Posted by: andreyspirit88 on 25 June 2018, 2:22 am EST

    • Post Options:
    • Link

    Posted 25 June 2018, 2:22 am EST

    Hello,

    I create C1ComboBox. After adding the items to it, i wish change the SelectedIndex.

    At the first opening of DropDown the SelectedItem is at the end of list (no good). At the second opening it’s fine, that is at the beginning of list.

    I want the first time SelectedItem appears at the beginning of list.

    Thank you.

    See attached example “C1ComboBoxDropDownEnd” please.

  • Posted 25 June 2018, 4:28 am EST

    Sorry. I could not attach file, so go to link in order to download it. Thank you

    https://ufile.io/d3v00

  • Posted 26 June 2018, 5:04 am EST

    Hello Andrey!

    For this, you need to set SelectedIndex of C1ComboBox to zero :

    c1ComboBox1.SelectedIndex = 0;
    

    WindowsFormsApplication1.zip

    Also, attached is your modified sample for your reference.

    Best regards,

    Meenakshi

  • Posted 26 June 2018, 6:37 am EST

    Hi Meenakshi,

    I do some manipulation with ComboBox in Form_Load event and then change SelectedIndex accordingly to this. It is not necessarily equal to zero.

    Thank for your help,

    Andrey

  • Posted 27 June 2018, 2:16 am EST

    Hi Andrey!

    I could see the problem here, and it seems to be a bug. Hence, I am reporting this issue to the concerned team [Internal tracking ID : 329593].

    Best regards,

    Meenakshi

  • Posted 28 August 2018, 3:04 am EST

    Hi Andrey!

    This issue has been fixed in the latest C1 builds. Please download the builds from the given link and check:

    http://prerelease.componentone.com/dotnet40/c1winforms/2018-t2/C1WinForms.4_4.0.20182.318.zip

    Regards,

    Meenakshi

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels