Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

get text of the selected item in combobox

$
0
0
I have a combobox which is filled from a binding source from the database. i want at some point of the program to get the selected value of the combobox.

The table in the database has a column of Id which is Integer and a column of Description which is string and this is the value that appears at the combobox, so i select as display member the description column and as value member the Id column.

Can i get the description of the selected item on the combobox? Which property should i use, i tried selectedValue and selectedText but neither of them is appropriate for this case.

Thanks a lot for your time
Kristina

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>