How do I select an ITEM from a combobox?

For Each MyItem As DataRowView In ComboBox1.Items

  MessageBox.Show(MyItem.Item("Name").ToString())

  If MyItem.Item("Name").ToString() = "A Name" Then

    ComboBox1.SelectedItem = MyItem

    ' Item found and selected, Exit the loop

    Exit For

  End If

Next

你可能感兴趣的:(combobox)