Welcome to the FoxLearn
Today we will learn how to display a value from a ComboBox in a TextBox
First, We will design a simple UI allows you to select a product from a Combobox and display a value selected in the TextBox
We will use entity framework to retrieve data from the product table in the northwind database
Entity Framework is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects
It eliminates the need for most of the data-access code that developers usually need to write
You can download the northwind database below this video
To populate data to a Combobox you need to set Datasource, Display member and Value member to a Combobox
To display a value selected from a Combobox to the Textbox you can set data binding to the Textbox
Databinding is the process that establishes a connection between the application UI and business logic
If the binding has the correct settings and the data provides the proper notifications
then when the data changes its value, the elements that are bound to the data reflect changes automatically.
Thank you for watching this video