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
.NET流水账一个真正的开明进步的国家,不是一群奴才造成的,是要有独立个性,有自由思考的人造成的。 |