private void subNamelist_SelectedIndexChanged(object sender, EventArgs e) { session subcode = new session(); subcodeList.DataSource = subcode.getSubCode(subNamelist.Text.ToString()); }