Esempio n. 1
0
 private void FillEnquiry()
 {
     dt = new DataTable();
     GrdLeadRegister.DataSource = NewLeadDL.ShowLeadName();
     GrdLeadRegister.ForceInitialize();
     grdLeadRegView.PopulateColumns();
     grdLeadRegView.Columns["LeadId"].Visible       = false;
     grdLeadRegView.Columns["CostCentreId"].Visible = false;
 }
Esempio n. 2
0
        private void PopulateGrid()
        {
            GrdLeadRegister.ForceInitialize();
            grdLeadRegView.PopulateColumns();
            grdLeadRegView.Columns["LeadName"].Group();
            grdLeadRegView.ExpandAllGroups();

            grdLeadRegView.Columns["LeadId"].Visible       = false;
            grdLeadRegView.Columns["CostCentreId"].Visible = false;
            grdLeadRegView.Columns["CallTypeId"].Visible   = false;

            grdLeadRegView.Columns["LeadId"].OptionsColumn.ShowInCustomizationForm       = false;
            grdLeadRegView.Columns["CostCentreId"].OptionsColumn.ShowInCustomizationForm = false;
            grdLeadRegView.Columns["CallTypeId"].OptionsColumn.ShowInCustomizationForm   = false;

            grdLeadRegView.Columns["LeadName"].Width      = 200;
            grdLeadRegView.Columns["LeadDate"].Width      = 100;
            grdLeadRegView.Columns["CampaignName"].Width  = 150;
            grdLeadRegView.Columns["Mobile"].Width        = 120;
            grdLeadRegView.Columns["Email"].Width         = 150;
            grdLeadRegView.Columns["CostCentre"].Width    = 200;
            grdLeadRegView.Columns["ExecutiveName"].Width = 150;
            grdLeadRegView.Columns["Remarks"].Width       = 150;
            grdLeadRegView.Columns["Address1"].Width      = 200;
            grdLeadRegView.Columns["Address2"].Width      = 200;
            grdLeadRegView.Columns["Locality"].Width      = 200;
            grdLeadRegView.Columns["City"].Width          = 150;
            grdLeadRegView.Columns["PinCode"].Width       = 100;
            grdLeadRegView.Columns["Gender"].Width        = 100;

            grdLeadRegView.OptionsView.ShowFooter           = true;
            grdLeadRegView.Appearance.HeaderPanel.Font      = new Font(grdLeadRegView.Appearance.HeaderPanel.Font, FontStyle.Bold);
            grdLeadRegView.OptionsSelection.InvertSelection = true;
            grdLeadRegView.OptionsSelection.EnableAppearanceHideSelection = false;
            grdLeadRegView.Appearance.FocusedRow.BackColor = Color.Teal;
            grdLeadRegView.Appearance.FocusedRow.ForeColor = Color.White;
            grdLeadRegView.OptionsView.ColumnAutoWidth     = false;
            //grdLeadRegView.BestFitColumns();

            grdLeadRegView.FocusedRowHandle = 0;
            grdLeadRegView.FocusedColumn    = grdLeadRegView.VisibleColumns[0];
            grdLeadRegView.Focus();

            BsfGlobal.RestoreLayout("CRMLeadRegister", grdLeadRegView);
            m_bLayOut = true;
        }
Esempio n. 3
0
        private void FillLeadGrid()
        {
            fromDate = Convert.ToDateTime(dEFrm.EditValue);
            toDate   = Convert.ToDateTime(dETo.EditValue);

            string fdate = string.Format("{0:dd MMM yyyy}", fromDate);
            string tdate = string.Format("{0:dd MMM yyyy}", toDate);

            dt = new DataTable();
            GrdLeadRegister.DataSource = NewLeadBL.FillLeadGrid(fdate, tdate);
            GrdLeadRegister.ForceInitialize();
            grdLeadRegView.PopulateColumns();
            grdLeadRegView.Columns["LeadId"].Visible = false;
            grdLeadRegView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D;
            grdLeadRegView.Appearance.HeaderPanel.Font = new Font(grdLeadRegView.Appearance.HeaderPanel.Font, FontStyle.Bold);

            grdLeadRegView.Appearance.FocusedCell.BackColor = Color.Teal;
            grdLeadRegView.Appearance.FocusedCell.ForeColor = Color.HotPink;
            grdLeadRegView.Appearance.FocusedRow.ForeColor  = Color.Black;
            grdLeadRegView.Appearance.FocusedRow.BackColor  = Color.HotPink;

            grdLeadRegView.OptionsSelection.EnableAppearanceHideSelection = false;
        }