DisplayMemberPath gives an error when I try to use it to display the value of my dictionary in a Combo Box

前端 未结 2 1277
情书的邮戳
情书的邮戳 2021-01-25 04:59

Here is my Combo Box


                 


        
2条回答
  •  無奈伤痛
    2021-01-25 05:26

    you should try '.' instead of Value, it should pick it up as binding to the object as it has no property name

    comboBox1.DisplayMemberPath = ".";
    

提交回复
热议问题