private void sessionType_SelectedIndexChanged(object sender, EventArgs e) { roomsConn roomsConn = new roomsConn(); String selectedSessionType = sessionType.Text.ToString(); asubjectCode.DataSource = roomsConn.getSessionTypeTable(selectedSessionType); if (selectedSessionType.Equals("Normal")) { atag2.Hide(); label1.Hide(); roomManagingSource.DataSource = roomsConn.load_normal_sesssion_details(); } else { atag2.Show(); label1.Show(); // comboBox1.Show(); // label7.Show(); } if (selectedSessionType.Equals("Normal")) { roomManagingSource.DataSource = roomsConn.load_normal_sesssion_details(); } else if (selectedSessionType.Equals("Consecutive")) { roomManagingSource.DataSource = roomsConn.load_con_sesssion_details(); } else if (selectedSessionType.Equals("Parallel")) { roomManagingSource.DataSource = roomsConn.load_parallel_sesssion_details(); } }