D
drishtik
hi i have a combobox which has some values
like (eg)
a
b
c
d
i want to retrieve the value from the db (a, or b or c or d)
and then select that item in the combo according ly
foreach (DataRow dr in recs)
{
cmbType.SelectedText = dr["description"].ToString();
}
but this doesnt work
dr["description"] has the correct value i want to select in the combo
like (eg)
a
b
c
d
i want to retrieve the value from the db (a, or b or c or d)
and then select that item in the combo according ly
foreach (DataRow dr in recs)
{
cmbType.SelectedText = dr["description"].ToString();
}
but this doesnt work
dr["description"] has the correct value i want to select in the combo