Example #1
0
        public override void InitializeControl()
        {
            base.InitializeControl();
            //Init banded view and make it the main view
            BandedGridView bandedView = InitializeBandedGridView(GridViewMain);

            MainView = bandedView;
            ViewCollection.AddRange(new BaseView[] { bandedView });
        }
Example #2
0
        public override void InitializeControl()
        {
            base.InitializeControl();
            //Init banded view and make it the main view
            BandedGridView bandedView = InitializeBandedGridView(GridViewMain);

            MainView = bandedView;
            ViewCollection.AddRange(new BaseView[] { bandedView });
            ShowOnlyPredefinedDetails = true;
            UseEmbeddedNavigator      = false;
        }
Example #3
0
        public override void InitializeControl()
        {
            GridViewMain = new GridView();
            this.EmbeddedNavigator.Buttons.CustomButtons.Clear();
            base.InitializeControl();
            //Init banded view and make it the main view
            BandedGridView bandedView = InitializeBandedGridView(GridViewMain);

            MainView = bandedView;
            ViewCollection.AddRange(new BaseView[] { bandedView });
            ShowOnlyPredefinedDetails = false;
            WorkingShiftList          = (List <ADWorkingShiftsInfo>)objWorkingShiftsController.GetListFromDataSet(objWorkingShiftsController.GetAllObjects());
            //UseEmbeddedNavigator = false;
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
     GridView   = new GridView();
     ((ISupportInitialize)(GridView)).BeginInit();
     ((ISupportInitialize)(this)).BeginInit();
     SuspendLayout();
     //
     // _gridView
     //
     GridView.GridControl = this;
     GridView.Name        = "GridView";
     //
     // GridControlWithColumnSettings
     //
     MainView = GridView;
     ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { GridView });
     ((ISupportInitialize)(GridView)).EndInit();
     ((ISupportInitialize)(this)).EndInit();
     ResumeLayout(false);
 }
Example #5
0
 private void InitializeComponent()
 {
     this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
     //
     // gridView1
     //
     this.gridView1.Appearance.ColumnFilterButton.BackColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.ColumnFilterButton.BorderColor                  = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.ColumnFilterButton.ForeColor                    = System.Drawing.Color.White;
     this.gridView1.Appearance.ColumnFilterButton.Options.UseBackColor         = true;
     this.gridView1.Appearance.ColumnFilterButton.Options.UseBorderColor       = true;
     this.gridView1.Appearance.ColumnFilterButton.Options.UseForeColor         = true;
     this.gridView1.Appearance.ColumnFilterButtonActive.BackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.ColumnFilterButtonActive.BorderColor            = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.ColumnFilterButtonActive.ForeColor              = System.Drawing.Color.Black;
     this.gridView1.Appearance.ColumnFilterButtonActive.Options.UseBackColor   = true;
     this.gridView1.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true;
     this.gridView1.Appearance.ColumnFilterButtonActive.Options.UseForeColor   = true;
     this.gridView1.Appearance.Empty.BackColor                          = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.Empty.BackColor2                         = System.Drawing.Color.White;
     this.gridView1.Appearance.Empty.Options.UseBackColor               = true;
     this.gridView1.Appearance.EvenRow.BackColor                        = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(251)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.EvenRow.BorderColor                      = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(251)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.EvenRow.ForeColor                        = System.Drawing.Color.Black;
     this.gridView1.Appearance.EvenRow.Options.UseBackColor             = true;
     this.gridView1.Appearance.EvenRow.Options.UseBorderColor           = true;
     this.gridView1.Appearance.EvenRow.Options.UseForeColor             = true;
     this.gridView1.Appearance.FilterCloseButton.BackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.FilterCloseButton.BorderColor            = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.FilterCloseButton.ForeColor              = System.Drawing.Color.White;
     this.gridView1.Appearance.FilterCloseButton.Options.UseBackColor   = true;
     this.gridView1.Appearance.FilterCloseButton.Options.UseBorderColor = true;
     this.gridView1.Appearance.FilterCloseButton.Options.UseForeColor   = true;
     this.gridView1.Appearance.FilterPanel.BackColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.FilterPanel.BackColor2                   = System.Drawing.Color.White;
     this.gridView1.Appearance.FilterPanel.ForeColor                    = System.Drawing.Color.Black;
     this.gridView1.Appearance.FilterPanel.Options.UseBackColor         = true;
     this.gridView1.Appearance.FilterPanel.Options.UseForeColor         = true;
     this.gridView1.Appearance.FixedLine.BackColor                      = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.FixedLine.BorderColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.FixedLine.Options.UseBackColor           = true;
     this.gridView1.Appearance.FixedLine.Options.UseBorderColor         = true;
     this.gridView1.Appearance.FocusedCell.BackColor                    = System.Drawing.Color.White;
     this.gridView1.Appearance.FocusedCell.ForeColor                    = System.Drawing.Color.Black;
     this.gridView1.Appearance.FocusedCell.Options.UseBackColor         = true;
     this.gridView1.Appearance.FocusedCell.Options.UseForeColor         = true;
     this.gridView1.Appearance.FocusedRow.BackColor                     = System.Drawing.Color.FromArgb(((int)(((byte)(93)))), ((int)(((byte)(175)))), ((int)(((byte)(223)))));
     this.gridView1.Appearance.FocusedRow.BorderColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(93)))), ((int)(((byte)(175)))), ((int)(((byte)(223)))));
     this.gridView1.Appearance.FocusedRow.ForeColor                     = System.Drawing.Color.White;
     this.gridView1.Appearance.FocusedRow.Options.UseBackColor          = true;
     this.gridView1.Appearance.FocusedRow.Options.UseBorderColor        = true;
     this.gridView1.Appearance.FocusedRow.Options.UseFont               = true;
     this.gridView1.Appearance.FocusedRow.Options.UseForeColor          = true;
     this.gridView1.Appearance.FooterPanel.BackColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.FooterPanel.BorderColor                  = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.FooterPanel.ForeColor                    = System.Drawing.Color.Black;
     this.gridView1.Appearance.FooterPanel.Options.UseBackColor         = true;
     this.gridView1.Appearance.FooterPanel.Options.UseBorderColor       = true;
     this.gridView1.Appearance.FooterPanel.Options.UseForeColor         = true;
     this.gridView1.Appearance.GroupButton.BackColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.GroupButton.BorderColor                  = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.GroupButton.Options.UseBackColor         = true;
     this.gridView1.Appearance.GroupButton.Options.UseBorderColor       = true;
     this.gridView1.Appearance.GroupFooter.BackColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.GroupFooter.BorderColor                  = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.GroupFooter.ForeColor                    = System.Drawing.Color.Black;
     this.gridView1.Appearance.GroupFooter.Options.UseBackColor         = true;
     this.gridView1.Appearance.GroupFooter.Options.UseBorderColor       = true;
     this.gridView1.Appearance.GroupFooter.Options.UseForeColor         = true;
     this.gridView1.Appearance.GroupPanel.BackColor                     = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.GroupPanel.BackColor2                    = System.Drawing.Color.White;
     this.gridView1.Appearance.GroupPanel.ForeColor                     = System.Drawing.Color.Black;
     this.gridView1.Appearance.GroupPanel.Options.UseBackColor          = true;
     this.gridView1.Appearance.GroupPanel.Options.UseForeColor          = true;
     this.gridView1.Appearance.GroupRow.BackColor                       = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.GroupRow.BorderColor                     = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.GroupRow.ForeColor                       = System.Drawing.Color.Black;
     this.gridView1.Appearance.GroupRow.Options.UseBackColor            = true;
     this.gridView1.Appearance.GroupRow.Options.UseBorderColor          = true;
     this.gridView1.Appearance.GroupRow.Options.UseForeColor            = true;
     this.gridView1.Appearance.HeaderPanel.BackColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.HeaderPanel.BorderColor                  = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(216)))), ((int)(((byte)(254)))));
     this.gridView1.Appearance.HeaderPanel.Options.UseBackColor         = true;
     this.gridView1.Appearance.HeaderPanel.Options.UseBorderColor       = true;
     this.gridView1.Appearance.HideSelectionRow.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(105)))), ((int)(((byte)(170)))), ((int)(((byte)(225)))));
     this.gridView1.Appearance.HideSelectionRow.BorderColor             = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(155)))), ((int)(((byte)(215)))));
     this.gridView1.Appearance.HideSelectionRow.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor    = true;
     this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor  = true;
     this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor    = true;
     this.gridView1.Appearance.HorzLine.BackColor                       = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.HorzLine.Options.UseBackColor            = true;
     this.gridView1.Appearance.OddRow.BackColor                         = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.OddRow.BorderColor                       = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.OddRow.ForeColor                         = System.Drawing.Color.Black;
     this.gridView1.Appearance.OddRow.Options.UseBackColor              = true;
     this.gridView1.Appearance.OddRow.Options.UseBorderColor            = true;
     this.gridView1.Appearance.OddRow.Options.UseForeColor              = true;
     this.gridView1.Appearance.Preview.Font                      = new System.Drawing.Font("Verdana", 7.5F);
     this.gridView1.Appearance.Preview.ForeColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(155)))), ((int)(((byte)(215)))));
     this.gridView1.Appearance.Preview.Options.UseFont           = true;
     this.gridView1.Appearance.Preview.Options.UseForeColor      = true;
     this.gridView1.Appearance.Row.BackColor                     = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(251)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.Row.ForeColor                     = System.Drawing.Color.Black;
     this.gridView1.Appearance.Row.Options.UseBackColor          = true;
     this.gridView1.Appearance.Row.Options.UseForeColor          = true;
     this.gridView1.Appearance.RowSeparator.BackColor            = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(246)))), ((int)(((byte)(255)))));
     this.gridView1.Appearance.RowSeparator.BackColor2           = System.Drawing.Color.White;
     this.gridView1.Appearance.RowSeparator.Options.UseBackColor = true;
     this.gridView1.Appearance.SelectedRow.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(83)))), ((int)(((byte)(155)))), ((int)(((byte)(215)))));
     this.gridView1.Appearance.SelectedRow.ForeColor             = System.Drawing.Color.White;
     this.gridView1.Appearance.SelectedRow.Options.UseBackColor  = true;
     this.gridView1.Appearance.SelectedRow.Options.UseForeColor  = true;
     this.gridView1.Appearance.TopNewRow.BackColor               = System.Drawing.Color.White;
     this.gridView1.Appearance.TopNewRow.Options.UseBackColor    = true;
     this.gridView1.Appearance.VertLine.BackColor                = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(184)))), ((int)(((byte)(251)))));
     this.gridView1.Appearance.VertLine.Options.UseBackColor     = true;
     this.gridView1.FocusRectStyle                               = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None;
     this.gridView1.GridControl                                  = this;
     this.gridView1.IndicatorWidth                               = this.IndicatorWidth;
     this.gridView1.Name                                         = "gridView1";
     this.gridView1.OptionsBehavior.Editable                     = false;
     this.gridView1.OptionsCustomization.AllowFilter             = false;
     this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridView1.OptionsView.EnableAppearanceEvenRow          = true;
     this.gridView1.OptionsView.EnableAppearanceOddRow           = true;
     this.gridView1.OptionsView.ShowGroupPanel                   = false;
     this.gridView1.RowHeight                                    = 25;
     //
     // CJiaGrid
     //
     Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                     | System.Windows.Forms.AnchorStyles.Left)
                                                    | System.Windows.Forms.AnchorStyles.Right)));
     Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     LookAndFeel.SkinName = "Office 2010 Blue";
     LookAndFeel.UseDefaultLookAndFeel = false;
     MainView = this.gridView1;
     Size     = new System.Drawing.Size(465, 195);
     ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.gridView1
     });
 }