Getting the name from a selected dropdown value

For a dropdown control with a valueProperty - FirmId and textProperty - FirmName

When a value is selected, how can I reference the textProperty of the selectedValue?

If you set the ValueProperty the Value will contain the FirmId. If you want the whole data item (so you can access any of its properties) do not set ValueProperty. Then the value will be the whole data item and you can use ${selectedValue.FirmName} to get it.

1 Like