Posted By

keidash on 06/28/13


Net change ComboBox selected

Versions (?)

How to change selected item on combobox in code behind

 / Published in: Visual Basic

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

  1. Dim value as string = "1"
  3. comboname.FindItemByValue(value).Selected = True
  5. 'This select the first element of the combo if the DefaultValue is numeric, in other case, change the value var 'value'.

Report this snippet  

You need to login to post a comment.