Beispiel #1
0
        public void AddColumn(string pName, EspackFormControl pLinkedControl, string pSPAdd = "", string pSPUpp = "", string pSPDel = "", AutoCompleteMode aMode = AutoCompleteMode.None, AutoCompleteSource aSource = AutoCompleteSource.None, string aQuery = "", bool pPrint = false, bool pVisible = true)
        {
            var _Col = new CtlVSTextBoxColumn()
            {
                Name       = pName,
                HeaderText = pName,
                //Colnumber = pColnumber,
                DBField          = pName,
                DataPropertyName = pName,
                CellTemplate     = new DataGridViewTextBoxCell(),
                Attr             = "",
                Add                = pSPAdd != "",
                Upp                = pSPUpp != "",
                Del                = pSPDel != "",
                SPAddParamName     = pSPAdd,
                SPDelParamName     = pSPDel,
                SPUppParamName     = pSPUpp,
                IsFlag             = false,
                Locked             = true,
                ReadOnly           = true,
                Width              = 0,
                Alignment          = "",
                Sortable           = false,
                LinkedControl      = pLinkedControl,
                AutoSizeMode       = DataGridViewAutoSizeColumnMode.DisplayedCells,
                AutoCompleteMode   = aMode,
                AutoCompleteSource = aSource,
                AutoCompleteQuery  = aQuery,
                Print              = pPrint,
                Visible            = pVisible
            };

            _Col.SetQuery("");
            Columns.Add(_Col);
        }
Beispiel #2
0
 public EspackLabel(string pCaption, EspackFormControl pParentControl)
 {
     ParentControl = pParentControl;
     Caption       = pCaption;
     Margin        = new Padding(0, 0, 0, 0);
 }