Ejemplo n.º 1
0
        private void LoadAwardData()
        {
            CompetitionInfoService dac = new CompetitionInfoService();

            dt = dac.GetAwardByStudent(lblStudentID.Text);
            AwardGrid.DataSource = dt;
            dac.Dispose();
            this.bindingSource1.DataSource = dt;
        }
Ejemplo n.º 2
0
        private void LoadAwardList()
        {
            AwardGrid.AutoGenerateColumns = false;
            AwardGrid.AllowUserToAddRows  = false;
            AwardGrid.SelectionMode       = DataGridViewSelectionMode.FullRowSelect;
            AwardGrid.RowHeadersWidth     = 15;
            AwardGrid.ColumnHeadersHeight = 30;
            AwardGrid.ColumnHeadersDefaultCellStyle.Font = new Font("Segoe UI", 11.5F);
            AwardGrid.RowsDefaultCellStyle.Font          = new Font("Segoe UI", 9.5F);

            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "수상코드", "award_id", false, 30);
            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "대회코드", "competition_id", false, 30);
            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "대회이름", "comp_name", true, 150);
            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "대회설명", "comp_details", true, 180);
            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "수상내역", "award_details", true, 110);
            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "날짜", "comp_date", true, 90);
            UtilityClass.AddNewColumnToDataGridView(AwardGrid, "주최", "comp_host", true, 110);
            CompetitionInfoService dac = new CompetitionInfoService();
            DataTable dt = dac.GetAwardByStudent(lblStudentID.Text);

            AwardGrid.DataSource = dt;
            AwardGrid.ClearSelection();
            dac.Dispose();
        }