public void LlenarGrilla() { this.dgvPlanes.AutoGenerateColumns = false; PlanLogic pl = new PlanLogic(); int idEsp = Convert.ToInt32(this.cmbEsp.SelectedValue); this.dgvPlanes.DataSource = pl.GetAllByEspecialidad(idEsp); }