コード例 #1
0
        //search by class
        private void cboClass_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.cboClass.SelectedIndex == -1)
            {
                MessageBox.Show("Please select Class Name", "Warning");
                return;
            }


            this.dgvScoreList.DataSource = objScoreListService.QueryScoreListByClassName(this.cboClass.Text.Trim());
            new DataGridViewStyle().DgvStyle1(this.dgvScoreList);
            QueryScore(this.cboClass.SelectedValue.ToString());
        }