how to display multiple columns in devexpress lookupedit
private void PopulateLookUpEditors()
{
///... some code
lookUpEditProject.CustomDisplayText += LookUpEditProject_CustomDisplayText;
}
private void LookUpEditProject_CustomDisplayText(object sender, CustomDisplayTextEventArgs e)
{
var edit = (LookUpEdit)sender;
var dataRow = edit.GetSelectedDataRow();
if (dataRow is ProdOrder order)
{
e.DisplayText = $"{order.PANummer} - {order.ProjectNumber} - {order.Description} - {order.Customer}";
}
}