开发者

How to fill a Devexpress.LookUpEdit with set values?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜