private void loadclass() { string getclass = "select * from class"; DataTable dt = new DataTable(); dt = connect.select(getclass); comSelClass.DataSource = dt; comSelClass.DisplayMember = "class"; comSelClass.ValueMember = "class_id"; loadSection(); loadsubject(); } private void loadSection() { string getsection = "select section_id, section from section where class_id=" + comSelClass.SelectedValue.ToString(); DataTable dt = new DataTable(); dt = connect.select(getsection); comSelSection.DataSource = dt; comSelSection.DisplayMember = "section"; comSelSection.ValueMember = "section_id"; } private void comSelClass_SelectedIndexChanged(object sender, EventArgs e) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)