[英]Pre select a lookupedit item by the value member
Lets say I have one LookUpEdit with this configuration: ValueMember="ID" DisplayMember="Description"
so when the form are loaded I need to pre select the item that have 1 in the ID column. 可以说我有一个具有以下配置的LookUpEdit:
ValueMember="ID" DisplayMember="Description"
因此在加载表单时,我需要预先选择ID列中具有1的项。 How can I do that? 我怎样才能做到这一点?
Try setting the EditValue
尝试设置
EditValue
LookupEdit1.EditValue = 1
See https://www.devexpress.com/Support/Center/Question/Details/Q37765 参见https://www.devexpress.com/Support/Center/Question/Details/Q37765
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.