How To Set C# ComboBox Selected Item or Index By Text ?
In some cases we may need to set the ComboBox selected index by a specific text included in the ComboBox items. In C# we can achieve this without adding any extra line of code. here it is...
myComboBox.SelectedIndex = myComboBox.Items.IndexOf("mysampletext");
0 comments: