SelectedItem in ComboBox
Hi,
I want to select a value from a combobox, in the way:
cb.SelectedItem = "number 2";
But it doesn't work.
I was trying to explore the contents:
sString = cb.Items[i].ToString();
But the values I obtain are always "System.Data.DataRowView" for each element.
Any help?
-------------------------------
World only exists into your mind.
|