Reputation: 3
How to change the text if I select the data in the combobox. Heres the picture of my ongoing system.
I would like when I click the Designation, the salary label will be change depends on the salary stored in my database
Upvotes: 0
Views: 71
Reputation: 54417
You should bind the DataTable
to the Label
as well:
Label11.DataBindings.Add("Text", table, "d_salary")
Now the Label
will update automatically when a selection is made.
Upvotes: 1