C# Tutorial-17 ComboBox Part-6 | How to set default value in combobox c#??

preview_player
Показать описание
How to set default value in combobox c#??
SelectedIndex property is used to set the default value of ComboBox….
[Please note that Index Starts from Zero]
It means…
First item has 0 index
Second item has 1 index
Third item has 2 index
And so on..
[If no Item is selected, -1 is returned by the SelectedIndex property]
Рекомендации по теме
Комментарии
Автор

thank u so much for your tutorial i just ve a qst how i can not pemit to select this index again during such job making to read from excel file the data so if select the index again so it change some thing in my dtagridview where i am shwing the excel file data so hw i can desactivate it or no select possible

xghimhg