コード例 #1
0
        private void SetComboBoxColumnProperties(bool setColumnsWidth)
        {
            if (DataAdapterFactory.Provider == null)
            {
                DataAdapterFactory.Provider = new SimpleDataAdapterFactory();
            }
            DataSet dataSet = new DDKOLONAIDDDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetDDKOLONAIDDDataAdapter().Fill(dataSet);
            }
            System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["DDKOLONAIDD"])
            {
                Sort = "NAZIVKOLONAIDD"
            };
            CreateValueList(this.DataGrid, "DDKOLONAIDDIDKOLONAIDD", dataList, "IDKOLONAIDD", "NAZIVKOLONAIDD");
            UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["DDKATEGORIJA"].Columns["IDKOLONAIDD"];

            column.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column.ValueList = this.DataGrid.DisplayLayout.ValueLists["DDKOLONAIDDIDKOLONAIDD"];
            if (setColumnsWidth)
            {
                column.Width = 370;
            }
        }
コード例 #2
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsDDKOLONAIDDDataSet1 = new DDKOLONAIDDDataSet();
     this.m_StartRow            = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
コード例 #3
0
 public void ChangeBinding()
 {
     this.bindingSourceDDKOLONAIDD.DataSource = this.DDKOLONAIDDController.DataSet;
     this.dsDDKOLONAIDDDataSet1 = this.DDKOLONAIDDController.DataSet;
 }
コード例 #4
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(DDKOLONAIDDFormUserControl));

            this.contextMenu1             = new ContextMenu();
            this.SetNullItem              = new MenuItem();
            this.toolTip1                 = new System.Windows.Forms.ToolTip(this.components);
            this.errorProvider1           = new ErrorProvider();
            this.errorProviderValidator1  = new ErrorProviderValidator(this.components);
            this.bindingSourceDDKOLONAIDD = new BindingSource(this.components);
            ((ISupportInitialize)this.bindingSourceDDKOLONAIDD).BeginInit();
            this.layoutManagerformDDKOLONAIDD = new TableLayoutPanel();
            this.layoutManagerformDDKOLONAIDD.SuspendLayout();
            this.layoutManagerformDDKOLONAIDD.AutoSize     = true;
            this.layoutManagerformDDKOLONAIDD.Dock         = DockStyle.Fill;
            this.layoutManagerformDDKOLONAIDD.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.layoutManagerformDDKOLONAIDD.AutoScroll   = false;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.layoutManagerformDDKOLONAIDD.Location = point;
            Size size = new System.Drawing.Size(0, 0);

            this.layoutManagerformDDKOLONAIDD.Size        = size;
            this.layoutManagerformDDKOLONAIDD.ColumnCount = 2;
            this.layoutManagerformDDKOLONAIDD.RowCount    = 3;
            this.layoutManagerformDDKOLONAIDD.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformDDKOLONAIDD.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformDDKOLONAIDD.RowStyles.Add(new RowStyle());
            this.layoutManagerformDDKOLONAIDD.RowStyles.Add(new RowStyle());
            this.layoutManagerformDDKOLONAIDD.RowStyles.Add(new RowStyle());
            this.label1IDKOLONAIDD    = new UltraLabel();
            this.textIDKOLONAIDD      = new UltraNumericEditor();
            this.label1NAZIVKOLONAIDD = new UltraLabel();
            this.textNAZIVKOLONAIDD   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDKOLONAIDD).BeginInit();
            ((ISupportInitialize)this.textNAZIVKOLONAIDD).BeginInit();
            this.dsDDKOLONAIDDDataSet1 = new DDKOLONAIDDDataSet();
            this.dsDDKOLONAIDDDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsDDKOLONAIDDDataSet1.DataSetName   = "dsDDKOLONAIDD";
            this.dsDDKOLONAIDDDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceDDKOLONAIDD.DataSource = this.dsDDKOLONAIDDDataSet1;
            this.bindingSourceDDKOLONAIDD.DataMember = "DDKOLONAIDD";
            ((ISupportInitialize)this.bindingSourceDDKOLONAIDD).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDKOLONAIDD.Location               = point;
            this.label1IDKOLONAIDD.Name                   = "label1IDKOLONAIDD";
            this.label1IDKOLONAIDD.TabIndex               = 1;
            this.label1IDKOLONAIDD.Tag                    = "labelIDKOLONAIDD";
            this.label1IDKOLONAIDD.Text                   = "Kolona:";
            this.label1IDKOLONAIDD.StyleSetName           = "FieldUltraLabel";
            this.label1IDKOLONAIDD.AutoSize               = true;
            this.label1IDKOLONAIDD.Anchor                 = AnchorStyles.Left;
            this.label1IDKOLONAIDD.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDKOLONAIDD.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDKOLONAIDD.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDKOLONAIDD.ImageSize            = size;
            this.label1IDKOLONAIDD.Appearance.ForeColor = Color.Black;
            this.label1IDKOLONAIDD.BackColor            = Color.Transparent;
            this.layoutManagerformDDKOLONAIDD.Controls.Add(this.label1IDKOLONAIDD, 0, 0);
            this.layoutManagerformDDKOLONAIDD.SetColumnSpan(this.label1IDKOLONAIDD, 1);
            this.layoutManagerformDDKOLONAIDD.SetRowSpan(this.label1IDKOLONAIDD, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDKOLONAIDD.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDKOLONAIDD.MinimumSize = size;
            size = new System.Drawing.Size(0x3b, 0x17);
            this.label1IDKOLONAIDD.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDKOLONAIDD.Location    = point;
            this.textIDKOLONAIDD.Name        = "textIDKOLONAIDD";
            this.textIDKOLONAIDD.Tag         = "IDKOLONAIDD";
            this.textIDKOLONAIDD.TabIndex    = 0;
            this.textIDKOLONAIDD.Anchor      = AnchorStyles.Left;
            this.textIDKOLONAIDD.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDKOLONAIDD.ReadOnly    = false;
            this.textIDKOLONAIDD.PromptChar  = ' ';
            this.textIDKOLONAIDD.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDKOLONAIDD.DataBindings.Add(new Binding("Value", this.bindingSourceDDKOLONAIDD, "IDKOLONAIDD"));
            this.textIDKOLONAIDD.NumericType = NumericType.Integer;
            this.textIDKOLONAIDD.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformDDKOLONAIDD.Controls.Add(this.textIDKOLONAIDD, 1, 0);
            this.layoutManagerformDDKOLONAIDD.SetColumnSpan(this.textIDKOLONAIDD, 1);
            this.layoutManagerformDDKOLONAIDD.SetRowSpan(this.textIDKOLONAIDD, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDKOLONAIDD.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDKOLONAIDD.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDKOLONAIDD.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVKOLONAIDD.Location              = point;
            this.label1NAZIVKOLONAIDD.Name                  = "label1NAZIVKOLONAIDD";
            this.label1NAZIVKOLONAIDD.TabIndex              = 1;
            this.label1NAZIVKOLONAIDD.Tag                   = "labelNAZIVKOLONAIDD";
            this.label1NAZIVKOLONAIDD.Text                  = "Naziv kolone:";
            this.label1NAZIVKOLONAIDD.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVKOLONAIDD.AutoSize              = true;
            this.label1NAZIVKOLONAIDD.Anchor                = AnchorStyles.Left;
            this.label1NAZIVKOLONAIDD.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVKOLONAIDD.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVKOLONAIDD.BackColor             = Color.Transparent;
            this.layoutManagerformDDKOLONAIDD.Controls.Add(this.label1NAZIVKOLONAIDD, 0, 1);
            this.layoutManagerformDDKOLONAIDD.SetColumnSpan(this.label1NAZIVKOLONAIDD, 1);
            this.layoutManagerformDDKOLONAIDD.SetRowSpan(this.label1NAZIVKOLONAIDD, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVKOLONAIDD.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVKOLONAIDD.MinimumSize = size;
            size = new System.Drawing.Size(0x63, 0x17);
            this.label1NAZIVKOLONAIDD.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVKOLONAIDD.Location    = point;
            this.textNAZIVKOLONAIDD.Name        = "textNAZIVKOLONAIDD";
            this.textNAZIVKOLONAIDD.Tag         = "NAZIVKOLONAIDD";
            this.textNAZIVKOLONAIDD.TabIndex    = 0;
            this.textNAZIVKOLONAIDD.Anchor      = AnchorStyles.Left;
            this.textNAZIVKOLONAIDD.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVKOLONAIDD.ReadOnly    = false;
            this.textNAZIVKOLONAIDD.DataBindings.Add(new Binding("Text", this.bindingSourceDDKOLONAIDD, "NAZIVKOLONAIDD"));
            this.textNAZIVKOLONAIDD.MaxLength = 50;
            this.layoutManagerformDDKOLONAIDD.Controls.Add(this.textNAZIVKOLONAIDD, 1, 1);
            this.layoutManagerformDDKOLONAIDD.SetColumnSpan(this.textNAZIVKOLONAIDD, 1);
            this.layoutManagerformDDKOLONAIDD.SetRowSpan(this.textNAZIVKOLONAIDD, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVKOLONAIDD.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVKOLONAIDD.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVKOLONAIDD.Size = size;
            this.Controls.Add(this.layoutManagerformDDKOLONAIDD);
            this.SetNullItem.Index   = 0;
            this.SetNullItem.Text    = "Set Null";
            this.SetNullItem.Click  += new EventHandler(this.SetNullItem_Click);
            this.contextMenu1.Popup += new EventHandler(this.contextMenu1_Popup);
            this.contextMenu1.MenuItems.AddRange(new MenuItem[] { this.SetNullItem });
            this.errorProvider1.DataSource             = this.bindingSourceDDKOLONAIDD;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "DDKOLONAIDDFormUserControl";
            this.Text       = "Kolona IDD obrasca";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.DDKOLONAIDDFormUserControl_Load);
            this.layoutManagerformDDKOLONAIDD.ResumeLayout(false);
            this.layoutManagerformDDKOLONAIDD.PerformLayout();
            ((ISupportInitialize)this.bindingSourceDDKOLONAIDD).EndInit();
            ((ISupportInitialize)this.textIDKOLONAIDD).EndInit();
            ((ISupportInitialize)this.textNAZIVKOLONAIDD).EndInit();
            this.dsDDKOLONAIDDDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }