private void Search() { RouterBrandParameters pmtRouterBrand = new RouterBrandParameters(); pmtRouterBrand.Name = "%" + this.frmRouterBrand.txtSchName.Text + "%"; DataTable dtRouterBrands = srvRouterBrand.SearchByParameters(pmtRouterBrand); this.frmRouterBrand.grdSchSearch.DataSource = null; this.frmRouterBrand.grdSchSearch.DataSource = dtRouterBrands; }
private void InitializeControlControls() { if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { RouterBrandParameters pmtRouterBrand = new RouterBrandParameters(); this.controlCustomerInfrastructureNetworkRouters.rbcRouterBrand.Parameters = pmtRouterBrand; this.controlCustomerInfrastructureNetworkRouters.rbcRouterBrand.Refresh(); this.controlCustomerInfrastructureNetworkRouters.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; RouterBrandParameters pmtRouterBrand = new RouterBrandParameters(); IList <RouterBrand> cctvBrands = this.srvRouterBrand.GetListByParameters(pmtRouterBrand); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["RouterBrandId"], "RouterBrandId", "Name", "Seleccione"); }