private void LoadDataInDataGridView()
        {
            ExtractComments extractComments = new ExtractComments();

            dGridRateReview.DataSource = extractComments.GetAllOpenAndLockedComments();
            dGridRateReview.Columns["commentId"].Visible = false;
        }
Example #2
0
        private void LoadComments()
        {
            GetAllComments = new ExtractComments();
            DataTable dt = GetAllComments.GetAllComments();

            dGridAllComments.DataSource = dt;
        }
        private void LoadDataInDataGridView()
        {
            //Extract Data
            ExtractComments extractComments = new ExtractComments();

            dGridRateReview.DataSource = extractComments.GetAllOpenAndLockedComments();

            // Enable DataGrid
            dGridRateReview.Enabled = true;

            // TextWrap in DataGrid
            dGridRateReview.DefaultCellStyle.WrapMode = DataGridViewTriState.True;

            // Hide CommentId an Rate
            dGridRateReview.Columns["CommentId"].Visible = false;
            dGridRateReview.Columns["rate"].Visible      = false;

            // Resize column Width in DataGrid
            dGridRateReview.Columns["Title"].FillWeight    = 15;
            dGridRateReview.Columns["Comments"].FillWeight = 60;
            dGridRateReview.Columns["Status"].FillWeight   = 10;

            // Hide Items
            lblRate.Visible             = false;
            numSel.Visible              = false;
            btnSubmitReview.Visible     = false;
            lblReviewerDiplay.Text      = "Click on a row to rate a Comment";
            lblReviewerDiplay.ForeColor = Color.Red;
        }