How to get selected value from DevExpress LookupEdit?

Vyasdev Meledath picture Vyasdev Meledath · Aug 31, 2010 · Viewed 21.9k times · Source

Hai all, Am using DevExpress LookupEdit in C#.NET project,also set both Display Member and Value member property of LookupEdit.How do I get selected value from DevExpress LookupEdit.

Thank you

Answer

DevExpress Team picture DevExpress Team · Aug 31, 2010

You should use the lookupEdit.EditValue property. If you need to obtain the editor's DisplayText, use its Text property.