I have a D开发者_Go百科evexpress LookUpEdit that I want to fill with 2-3 values. For example "Value 1" (1) and "Value 2" (2). I want this name to be displayMember of the LookUpEdit and the number in brackets be the valueMember so that if I was given the number 1 I know to set the selected value of the LookUpEdit to "Value 1".
You should make a class with two properties, then bind a set of instances of it to the LookUpEdit.
You can then set the LookUpEdit's DisplayMember
and ValueMember
properties.
精彩评论