Good morning
How can I set a value to a combobox that is linked to a datatable:
Ex:
MiComboBoc.SelectedValue="01"
Good morning
How can I set a value to a combobox that is linked to a datatable:
Ex:
MiComboBoc.SelectedValue="01"
This was the solution:
foreach (ComboboxItem cbi in CBAlmacenes.Items)
{
if (cbi.Value as String == row["CodAlmacen"].ToString())
{
CBAlmacenes.SelectedItem = cbi;
break;
}
}