private void Search() { ISPParameters pmtISP = new ISPParameters(); pmtISP.Name = "%" + this.frmISP.txtSchName.Text + "%"; DataTable dtISPs = srvISP.SearchByParameters(pmtISP); this.frmISP.grdSchSearch.DataSource = null; this.frmISP.grdSchSearch.DataSource = dtISPs; }
private void InitializeControlControls() { if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { ISPParameters pmtISP = new ISPParameters(); this.controlCustomerInfrastructureISPs.icISP.Parameters = pmtISP; this.controlCustomerInfrastructureISPs.icISP.Refresh(); this.controlCustomerInfrastructureISPs.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; ISPParameters pmtISP = new ISPParameters(); IList <ISP> cctvBrands = this.srvISP.GetListByParameters(pmtISP); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["ISPId"], "ISPId", "Name", "Seleccione"); }