sql server - Binding database to ComboBox -
i have combobox
connected sql-server , retrieve columns on it. here's table
course_code course ctech computer technician comsci computer science
for example, if select computer technician combo box how retrieve course_code
ctech
in label, if select computer science in combo box how retrieve course_code
comsci
in label?
there's whole bunch of selected...
properties selecteditem
, selectedvalue
etc. see documentation here , pick 1 want/need.
what you'll want selectedvalue; if doesn't work you'll need more specific on how got data combobox (databinding?).
Comments
Post a Comment