DataBinding in C# (populate data in a comboBox)
Vložit
- čas přidán 18. 02. 2021
- Learn how to do DataBinding in a combo box.
You can bind anything that is IList in a DataSource. In this simple exercise I show you how to bind a list of people to a ComboBox in C#.
I hope you liked it.
P.N - Věda a technologie
This video had all Information i wanted about DataBinding. Thank you :=)
Bravo shqipe.Shume i qarte !
Shqipet jane te qart gjith 🤣
wow thanks a lot for such clear explanations 🙌
Very good, thanks. It would be interesting to get data dinamically from a Db or populate that people var with data from a Db automatically, then to display it into the comboBox
Thanks man.
You are wellcome
Thanks for this video it works for me. When you execute the application at the end of the video the messagebox appears before the Form shows because the SelectedIndexChanged event is triggered. How can I avoid that the event is triggered when the Form loads for the first time?
Yes, you have to bind the selected index changed event only after you have filled the data source, and then you programatically hook the evet for index changed. That will do
I don't have any tables on the left upside.