Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » BUG: ComboBox data binding Collapse All
Subject Author Date
Serge Kandakov Nov 12, 2008 - 6:15 PM


When I try to use data binding in combo box, it doesn’t display correct data for the very first time.

Short example:

         class TestItem {

            public string ItemName { get { return "Correct item name"; } }

            override public string ToString() { return "Wrong item name"; }


        private List<TestItem> items = new List<TestItem>();

            items.Add(new TestItem());

            items.Add(new TestItem());

            combo.DataSource = items;

            combo.DisplayMember = "ItemName";

            combo.SelectedIndex = 0;

it will display "Wrong item name" in the visible part of combo box, however:

            cbEncoding.SelectedIndex = 1;

            cbEncoding.SelectedIndex = 0;

will display "Correct item name".



Technical Support Nov 13, 2008 - 11:23 AM

Thank you for the bug report. This will be fixed in the next release.