Esempio n. 1
0
        private void FillOtherExecregPost()
        {
            //deTo.EditValue = Convert.ToDateTime(DateTime.Now.ToShortDateString());
            string fdate = string.Format("{0:dd MMM yyyy}", Convert.ToDateTime(deFrom.EditValue));

            if (deTo.EditValue == null)
            {
                deTo.EditValue = Convert.ToDateTime(DateTime.Now);
            }
            string tdate = string.Format("{0:dd MMM yyyy}", Convert.ToDateTime(deTo.EditValue));//.AddDays(1));

            dtCallSht           = new DataTable();
            dtCallSht           = CallSheetEntryBL.GetOtherReportPost(fdate, tdate, Convert.ToBoolean(ChkExec.EditValue));
            DGvTrans.DataSource = dtCallSht;
            DGvTransView.PopulateColumns();
            DGvTransView.Columns["ExecName"].Group();
            DGvTransView.Columns["NextCallDate"].Group();
            DGvTransView.ExpandAllGroups();

            DGvTransView.Appearance.HeaderPanel.Font = new Font(DGvTransView.Appearance.HeaderPanel.Font, FontStyle.Bold);

            DGvTransView.Appearance.FocusedCell.BackColor = Color.Teal;
            DGvTransView.Appearance.FocusedCell.ForeColor = Color.White;
            DGvTransView.Appearance.FocusedRow.ForeColor  = Color.Teal;
            DGvTransView.Appearance.FocusedRow.BackColor  = Color.White;

            DGvTransView.OptionsSelection.EnableAppearanceHideSelection = false;
        }