简体   繁体   中英

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. How can I do that?

Try setting the EditValue

LookupEdit1.EditValue = 1

See https://www.devexpress.com/Support/Center/Question/Details/Q37765

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM