Hi astika,
ComboBox will display
Text
property when you select an item. And
SelectedValue, SelectedItem
will have value(s) when only if you set
DataSource, DisplayMember, ValueMember
property. Please try:
cbo.DataSource = dataSet;
cbo.DisplayMember = "FieldDisplayOfDataset";
cbo.ValueMember = "FieldValueOfDataset";
Update:
When you assigned to ComboBox like that, you can change the
Text
by set
SelectedValue
. It will be change the
Text
display on the control.
example:
cbo.SelectedValue = "ValueExistInField";