开发者

How to fill a Devexpress.LookUpEdit with set values?

开发者 https://www.devze.com 2023-02-12 13:53 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消