private void llenaGrilla(string strCodigoZona) { ServicioGeneralClient servicioGeneral = new ServicioGeneralClient(); var withBlock = dtgSecciones; withBlock.DataSource = servicioGeneral.getSecciones(3, strCodigoZona, string.Empty); }
private void cargaSecciones() { if (cboZona.SelectedIndex > 0) { ServicioGeneralClient servicioGeneral = new ServicioGeneralClient(); var withBlock = cboSeccion; withBlock.DataSource = servicioGeneral.getSecciones(1, Convert.ToString(cboZona.SelectedValue), String.Empty); withBlock.ValueMember = "CODIGO"; withBlock.DisplayMember = "NOMBRE"; withBlock.SelectedIndex = 0; } else { var withBlock = cboSeccion; withBlock.DataSource = null; } }