private void cmbSubject_SelectedIndexChanged(object sender, EventArgs e) { _attendance.Subject = _subjectList.Value[cmbSubject.SelectedIndex]; _attendance.Fill(); FillDataGridView(); }