private DataSet ds = null;     //save result
        public FrmScoreQuery()
        {
            InitializeComponent();

            DataTable dt = objStuClassService.GetAllClassesName().Tables[0];

            this.cboClass.DataSource    = dt;
            this.cboClass.DisplayMember = "ClassName";
            this.cboClass.ValueMember   = "ClassId";
            this.cboClass.SelectedValue = -1;

            this.ds = objScoreListService.GetAllScoreList();
            this.dgvScoreList.DataSource = ds.Tables[0];
            new DataGridViewStyle().DgvStyle1(this.dgvScoreList);
        }
        //private DataSet ds = null;

        public FrmScoreManage()
        {
            InitializeComponent();

            this.dgvScoreList.AutoGenerateColumns = false;

            this.cboClass.SelectedIndexChanged -= new System.EventHandler(this.cboClass_SelectedIndexChanged);
            DataTable dt = objStuClassService.GetAllClassesName().Tables[0];



            this.cboClass.DataSource = dt;

            this.cboClass.DisplayMember = "ClassName";
            this.cboClass.ValueMember   = "ClassId";


            this.cboClass.SelectedIndex = -1;

            this.cboClass.SelectedIndexChanged += new System.EventHandler(this.cboClass_SelectedIndexChanged);
        }