1
I have a client register and I need to change the registration of the same at some point, but to make the change I have to deal with a Picker field, only it is a mistake when I try to bring the content that is recorded in it to soon after, if necessary, change.
The mistake:
"Unhandled Exception: System.Formatexception: Input string was not in a correct format."
Picker code (with other fields for better example):
pckUF.SelectedIndex = Convert.ToInt32(clienteAlterar.UF);
entryIBGE.Text = clienteAlterar.COD_IBGE;
entryTel1.Text = clienteAlterar.FONE1;
Note: If I remove the Picker from my code (in this part of Change) all fields normally receive their contents, they are ready to be changed.
clienteAlterar.UF
is a string with valid numeric content? This is what validation is claiming– Diego Rafael Souza