Nevron Forum

Could not set default ComboBox index

https://www.nevron.com/Forum/Topic3731.aspx

By JSW W. - Monday, June 21, 2010

NCB_Box.SelectedIndex = 0

For some reason I could not get default index value to the combobox. It just stay blank. All item were set in design mode.

I could do it if clear() first then add item programatically.

Cheers,
By JSW W. - Friday, June 25, 2010

Sorry I meant for selected text not index.

CBBox.Text = "string" or .SelectedText = "string"
it did not change default selection.
By Angel Chorbadzhiev - Friday, June 25, 2010

Hello JSW W.,

To be able to set SelectedText to some value you need NComboBox.Editable property to be true.

Regards,

Angel.