private void Priprema_Load(object sender, EventArgs e) { GODINA_I_MJESEC_OBRACUNADataAdapter adapter = new GODINA_I_MJESEC_OBRACUNADataAdapter(); GODINA_I_MJESEC_OBRACUNADataSet dataSet = new GODINA_I_MJESEC_OBRACUNADataSet(); adapter.Fill(dataSet); this.UltraCombo1.DataSource = dataSet; this.UltraCombo2.DataSource = dataSet; this.UltraCombo1.DataMember = "GODINA_I_MJESEC_OBRACUNA"; this.UltraCombo2.DataMember = "GODINA_I_MJESEC_OBRACUNA"; if (this.UltraCombo1.Rows.Count > 0) { this.UltraCombo1.SelectedRow = this.UltraCombo1.Rows[0]; } if (this.UltraCombo2.Rows.Count > 0) { this.UltraCombo2.SelectedRow = this.UltraCombo2.Rows[0]; } InfraCustom.PostaviSelectAllSvimEditKontrolama(this); this.UltraCombo1.ValueMember = "godinaimjesecobracuna"; this.UltraCombo2.ValueMember = "godinaimjesecobracuna"; }
public virtual void Fill() { this.PreFill(); this.dsGODINA_I_MJESEC_OBRACUNADataSet1 = new GODINA_I_MJESEC_OBRACUNADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
private void Priprema_Load(object sender, EventArgs e) { GODINA_I_MJESEC_OBRACUNADataAdapter adapter = new GODINA_I_MJESEC_OBRACUNADataAdapter(); GODINA_I_MJESEC_OBRACUNADataSet dataSet = new GODINA_I_MJESEC_OBRACUNADataSet(); adapter.Fill(dataSet); this.UltraCombo1.DataSource = dataSet; this.UltraCombo2.DataSource = dataSet; this.UltraCombo1.DataMember = "GODINA_I_MJESEC_OBRACUNA"; this.UltraCombo2.DataMember = "GODINA_I_MJESEC_OBRACUNA"; if (this.UltraCombo1.Rows.Count > 0) { this.UltraCombo1.SelectedRow = this.UltraCombo1.Rows[0]; } if (this.UltraCombo2.Rows.Count > 0) { this.UltraCombo2.SelectedRow = this.UltraCombo2.Rows[0]; } InfraCustom.PostaviSelectAllSvimEditKontrolama(this); this.UltraCombo1.ValueMember = "godinaimjesecobracuna"; this.UltraCombo2.ValueMember = "godinaimjesecobracuna"; ColumnEnumerator enumerator = this.UltraGrid1.DisplayLayout.Bands[0].Columns.GetEnumerator(); while (enumerator.MoveNext()) { UltraGridColumn current = enumerator.Current; if (current.DataType == Type.GetType("System.Decimal")) { if (current.Key != "koeficijent") { current.MaskInput = "{double:9.2}"; } else { current.MaskInput = "{double:4.3}"; } } } }