private void dtgTerritorio_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { txtCodigoTerritorio.Text = Convert.ToString(dtgTerritorio.Rows[e.RowIndex].Cells["CODIGO"].Value); txtNombreTerritorio.Text = Convert.ToString(dtgTerritorio.Rows[e.RowIndex].Cells["NOMBRE"].Value); if (Convert.ToString(dtgTerritorio.Rows[e.RowIndex].Cells["ESTADO"].Value) == "ACTIVO") { rbnActivo.Checked = true; rbnInactivo.Checked = false; } else if (Convert.ToString(dtgTerritorio.Rows[e.RowIndex].Cells["ESTADO"].Value) == "INACTIVO") { rbnInactivo.Checked = true; rbnActivo.Checked = false; } else { rbnActivo.Checked = true; rbnInactivo.Checked = true; } ServicioGeneralClient servicioGeneral = new ServicioGeneralClient(); var territorio = servicioGeneral.getTerritorioFiltro(4, Convert.ToString(dtgTerritorio.Rows[e.RowIndex].Cells["CODIGO"].Value)); //cboPais.SelectedValue = territorio.CODIGO_PAIS; //CargaRegional(); //cboRegional.SelectedValue = territorio.CODIGO_REGIONAL; //cargaZona(); //cboZona.SelectedValue = territorio.CODIGO_ZONA; //cargaSecciones(); //cboSeccion.SelectedValue = territorio.CODIGO; } }