Return to Snippet

Revision: 64032
at June 28, 2013 19:39 by keidash


Initial Code
Dim value as string = "1"

comboname.FindItemByValue(value).Selected = True

'This select the first element of the combo if the DefaultValue is numeric, in other case, change the value var 'value'.

Initial URL


Initial Description
Example to change the selected item in a ComboBox, in code behind. For VB.Net

Initial Title
How to change selected item on combobox in code behind

Initial Tags
Net

Initial Language
Visual Basic