2
I am using C# Windows Forms with . NET 3.5.
I’ve inserted all Federation states into the property items of my combobox. When I search for a record saved from my comic book, the combobox does not take on the value.
For example: when searching for a record that contains "AC" in the database table, the combobox does not take value, it goes blank.
The code:
Conta conta = new Conta();
conta = controle.Ler(id);
cboEstado.SelectedItem = conta.estado;
Could you elaborate more on your problem? How is this piece of code, for example. This would make it easier to provide an answer that helps you.
– Felipe Avelar
I edited the post, thank you.
– cumpadi