I need to display default values in combo and text boxes from database whenever form load event happens.
Employee table data
001 John 1000 Sales
002 Tony 2000 Production
003 Troy 3000 Marketing
I need to display
data in combo box with default name: John, default Esalary: 1000 and default Edept Sales.
I have design form in studio 2010 using VB.Net where
are in labels and for John, 1000 and Sales I have combo box like below:
Lables: Combo box
Ename: John (Default)
ESalary: 1000 (Default)
EDept: Sales (Default)
My Question is:
How would I display above mentioned default values in combo box followed by other data when form load event happens?
(If I need to pick other values in Ename, ESalary or Edept I can pick from Combo box otherwise by default It will pop up only John, 1000 and Sales.
I am sorry If I am not able to explain it in proper way.
I would appreciate any help into this. Thanks a lot in advance :)