.netwpfcombobox

DisplayMemberPath concatenation


I am trying to bind two values to a ComboBox display value, but I do not know how to do.

This way does not work:

cboRegion.DisplayMemberPath = "idregion" + "description";

Does anyone know how to do that in C#?


Solution

  • Unfortunately, this is not possible with DisplayMemberPath. You have the following alternatives: