Current filter:
                                You should refresh the page.
                                Support Center

                                How to customize popup window appearance in SearchLookUpEdit


                                This example demonstrates how to customize the SearchLookUpEdit popup appearance.
                                All popup controls inherited from RepositoryItemPopupBase has the AppearanceDropDown property that represent the appearance settings used to paint the editor's popup window.

                                The AppeareanceDropDown property works only for simple popup windows. The popup windows in SearchLookUpEdit and GridLookUpEdit do not use this property because they has complex layouts.
                                The SearchLookUpEdit popup window contain LayoutControl. To customize its appearance handle the Popup event. In this event handler obtain PopupWindow and iterate through its controls to find the required LayoutControl. Then, customize its appearance.

                                You must  log in  or  register  to leave comments
                                Select file
                                • Form1.cs
                                • Program.cs
                                Select language
                                • C#
                                • VB.NET
                                Select version
                                • v2013 vol 1.4 - v2013 vol 2.9
                                • v2010 vol 2.3 - v2012 vol 2.16
                                using System;
                                using System.Collections.Generic;
                                using System.ComponentModel;
                                using System.Data;
                                using System.Drawing;
                                using System.Text;
                                using System.Windows.Forms;
                                using DevExpress.XtraLayout;
                                using DevExpress.Utils.Win;
                                namespace E3534
                                    public partial class Form1 : Form
                                        public Form1()
                                        private void searchLookUpEdit1_Popup(object sender, EventArgs e)
                                            Control window = (sender as IPopupControl).PopupWindow;
                                            //Direct reference to the LayoutControl. It could be changed in future versions.
                                            //LayoutControl lc = (sender as IPopupControl).PopupWindow.Controls[2].Controls[0] as LayoutControl;
                                            LayoutControl lc = SearchForLayout(window);
                                            LayoutControlGroup lcgroup = lc.Items[0] as LayoutControlGroup;
                                            lcgroup.AppearanceGroup.BackColor = Color.CadetBlue;
                                        LayoutControl SearchForLayout (Control container)
                                            foreach (Control control in container.Controls)
                                                if (control is LayoutControl)
                                                    return control as LayoutControl;
                                                LayoutControl lc = SearchForLayout(control);
                                                if (lc != null)
                                                    return lc;
                                            return null;

                                To start a chat you should create a support ticket

                                If you need additional product information, write to us at or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners