开发者

how to hardcode the lookupedit

开发者 https://www.devze.com 2023-02-05 11:10 出处:网络
hii,, I am using c# in my windows application i need to hardcode the lookupedit..I want the lookupedit to show\"YES\"when the value member is 1 and \"NO\"when the value member is 0..

hii,, I am using c# in my windows application i need to hardcode the lookupedit..I want the lookupedit to show"YES"when the value member is 1 and "NO"when the value member is 0..

Right now when i am using lookupedit,it is showing all the display members.that is all yes 开发者_StackOverflowand no's...this dont want to happen.I just need one yes and no option just like combo box...please help me


If I understand your task correctly, you should filter the LookupEdit's underlying DataSource so that it contains only two records with ValueMember equals 0 and 1.

0

精彩评论

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

关注公众号