forum

home / developersection / forums / get combobox set value as string

Get combobox set value as string

Samuel Fernandes 2590 09-Feb-2014

Found several ways to do so, but none of them works for me.. I have a combobox with variable number of options (taken from dynamic xml file). For next, I need to know what the user choosed, and I cant find out how to do it. This is one of ways I found and tried:

string myString = myCombobox.SelectedValue.ToString();

At least I dont get an error, but when I try to show that string, it does nothing.


c# c# 
Updated on 09-Feb-2014
Can you answer this question?

Answer

1 Answers

Liked By