public void GetDataPediatria(string ID, int Dias) { List <ClaseEnfermeria> Data = _LogicLayer.GetDataPediatria(ID); dataGridView1.DataSource = Data; if (Dias > 1825) { dataGridView1.Columns[7].Visible = true; dataGridView1.Columns[8].Visible = true; dataGridView1.Columns[9].Visible = true; } else { dataGridView1.Columns[10].Visible = true; dataGridView1.Columns[11].Visible = true; dataGridView1.Columns[12].Visible = true; dataGridView1.Columns[13].Visible = true; } }