Nevron Forum

Set default Index for dropdown command

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

By JSW W. - Wednesday, June 2, 2010

Hi
I got commandbar inserted with dropdownbox. I could not find a way to set default index for this combobox via designer. So it will be a blank box when load.

Have you got some solution?
Cheers,
By Angel Chorbadzhiev - Thursday, June 3, 2010

Hello JSW W.,

I guess you are asking about NComboBoxCommand control.

You can set the default index as follows:

NComboBoxCommand comboCommand = new NComboBoxCommand();

comboCommand.HostedControl.SelectedIndex = 0;

Regards,

Angel.