Exemplo n.º 1
0
        public static void Format(this LookUpEdit lokMain, bool showHeader = true)
        {
            lokMain.Properties.BestFitMode   = BestFitMode.BestFitResizePopup;
            lokMain.Properties.ShowFooter    = false;
            lokMain.Properties.NullText      = String.Empty;
            lokMain.Properties.ShowHeader    = showHeader;
            lokMain.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;

            lokMain.Properties.SearchMode            = SearchMode.AutoFilter;
            lokMain.Properties.AllowNullInput        = DefaultBoolean.True;
            lokMain.Properties.AutoSearchColumnIndex = 1;
            lokMain.Properties.AppearanceDropDownHeader.TextOptions.HAlignment = HorzAlignment.Center;
            lokMain.Properties.HighlightedItemStyle = HighlightStyle.Standard;

            lokMain.Translation();
            lokMain.FormatColumnLookUpEdit();
        }