private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Override.AllowUpdate = DefaultableBoolean.False; DBMSParameters pmtDBMS = new DBMSParameters(); IList <DBMS> cctvBrands = this.srvDBMS.GetListByParameters(pmtDBMS); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["DBMSId"], "DBMSId", "Name", "Seleccione"); CustomerInfrastructureServerComputerParameters pmtCustomerInfrastructureServerComputer = new CustomerInfrastructureServerComputerParameters(); if (this.CustomerInfrastructure != null) { pmtCustomerInfrastructureServerComputer.CustomerInfrastructureId = this.CustomerInfrastructure.CustomerInfrastructureId; IList <CustomerInfrastructureServerComputer> customerInfrastructureServerComputers = this.srvCustomerInfrastructureServerComputer.GetListByParameters(pmtCustomerInfrastructureServerComputer); this.controlCustomerInfrastructureAdministationSoftwares.cisccDetCustomerInfrastructureServerComputer.Parameters = pmtCustomerInfrastructureServerComputer; this.controlCustomerInfrastructureAdministationSoftwares.cisccDetCustomerInfrastructureServerComputer.DisplayMember = "ServerModel"; this.controlCustomerInfrastructureAdministationSoftwares.cisccDetCustomerInfrastructureServerComputer.Refresh(); WindowsFormsUtil.SetUltraGridValueList(e.Layout, customerInfrastructureServerComputers, band.Columns["CustomerInfrastructureServerComputerId"], "CustomerInfrastructureServerComputerId", "ServerModel", "Seleccione"); } }
private void Search() { DBMSParameters pmtDBMS = new DBMSParameters(); pmtDBMS.Name = "%" + this.frmDBMS.txtSchName.Text + "%"; DataTable dtDBMSs = srvDBMS.SearchByParameters(pmtDBMS); this.frmDBMS.grdSchSearch.DataSource = null; this.frmDBMS.grdSchSearch.DataSource = dtDBMSs; }
private void InitializeControlControls() { if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { DBMSParameters pmtDBMS = new DBMSParameters(); this.controlCustomerInfrastructureServerComputerDBMSs.dcDBMS.Parameters = pmtDBMS; this.controlCustomerInfrastructureServerComputerDBMSs.dcDBMS.Refresh(); this.controlCustomerInfrastructureServerComputerDBMSs.grdRelations.InitializeLayout += new InitializeLayoutEventHandler(grdRelations_InitializeLayout); } }
private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Override.AllowUpdate = DefaultableBoolean.False; DBMSParameters pmtDBMS = new DBMSParameters(); IList <DBMS> cctvBrands = this.srvDBMS.GetListByParameters(pmtDBMS); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["DBMSId"], "DBMSId", "Name", "Seleccione"); }