Greetings, everyone! Please help me to solve this mistery:
I have a Dropdown List with four options
It's based on a class called TipoFrete, and all of his properties are strings, just like the options of the dropdown
The problem happens when I select the fisrt option, which Id is the string "0". It returns the correct Text, but the Id turns into null:
I tried to Console.Writeline the args.ItemData.Id to check if the value is ok, and it shows the correct value:
But when I try to manipulate the value, it's null
I tried changing the value "0", putting the letter "x":
The problem only occurs when I select an option with Id "0".
Could you help me on this? Is it a bug, or I'm doing something wrong?
I'm sending the code for further details
Attachment:
Testes_d5cdee5c.zip