Exemplo n.º 1
0
        void baseGridsContainer1_NeedRefresh(object sender, EventArgs e)
        {
            BaseGridsContainer sender_typed = (BaseGridsContainer)sender;

            if (sender_typed.Name == "baseGridsContainer1")
            {
                this.baseGridsPinnedCols.Refresh();
            }
            else
            {
                this.baseGridsContainer1.Refresh();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// prida scrollbary eventuelne dalsi potrebne komponenty
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DunaGridView));
            this.vscrollbar                  = new System.Windows.Forms.VScrollBar();
            this.dunaGridAllSelector1        = new DunaGrid.components.DunaGridAllSelector();
            this.dunaGridRowSelectorsColumn1 = new DunaGrid.components.DunaGridRowSelectorsColumn();
            this.dunaGridHeaderRow1          = new DunaGrid.components.DunaGridHeaderRow();
            this.hscrollbar                  = new DunaGrid.components.DunaHScrollBar();
            this.baseGridsContainer1         = new DunaGrid.components.BaseGridsContainer();
            this.baseGridsPinnedCols         = new DunaGrid.components.BaseGridsContainer();
            this.SuspendLayout();
            //
            // vscrollbar
            //
            this.vscrollbar.Dock     = System.Windows.Forms.DockStyle.Right;
            this.vscrollbar.Location = new System.Drawing.Point(595, 0);
            this.vscrollbar.Name     = "vscrollbar";
            this.vscrollbar.Size     = new System.Drawing.Size(17, 377);
            this.vscrollbar.TabIndex = 0;
            this.vscrollbar.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.hscrollbar_Scroll);
            //
            // dunaGridAllSelector1
            //
            this.dunaGridAllSelector1.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.dunaGridAllSelector1.Location  = new System.Drawing.Point(0, 0);
            this.dunaGridAllSelector1.Name      = "dunaGridAllSelector1";
            this.dunaGridAllSelector1.Size      = new System.Drawing.Size(27, 28);
            this.dunaGridAllSelector1.TabIndex  = 5;
            //
            // dunaGridRowSelectorsColumn1
            //
            this.dunaGridRowSelectorsColumn1.Location = new System.Drawing.Point(0, 17);
            this.dunaGridRowSelectorsColumn1.Name     = "dunaGridRowSelectorsColumn1";
            this.dunaGridRowSelectorsColumn1.Rows     = null;
            this.dunaGridRowSelectorsColumn1.Size     = new System.Drawing.Size(27, 360);
            this.dunaGridRowSelectorsColumn1.TabIndex = 3;

            //
            // dunaGridHeaderRow1
            //
            this.dunaGridHeaderRow1.BackColor = System.Drawing.SystemColors.AppWorkspace;
            this.dunaGridHeaderRow1.Columns   = null;
            this.dunaGridHeaderRow1.Location  = new System.Drawing.Point(33, 3);
            this.dunaGridHeaderRow1.MoveX     = 0;
            this.dunaGridHeaderRow1.Name      = "dunaGridHeaderRow1";
            this.dunaGridHeaderRow1.Size      = new System.Drawing.Size(575, 25);
            this.dunaGridHeaderRow1.TabIndex  = 2;
            //
            // hscrollbar
            //
            this.hscrollbar.Dock             = System.Windows.Forms.DockStyle.Bottom;
            this.hscrollbar.LargeChange      = 10;
            this.hscrollbar.Location         = new System.Drawing.Point(0, 377);
            this.hscrollbar.MaximumValue     = 100;
            this.hscrollbar.MinimumValue     = 0;
            this.hscrollbar.Name             = "hscrollbar";
            this.hscrollbar.NavigateBarWidth = 120;
            this.hscrollbar.RightMargin      = 17;
            this.hscrollbar.Size             = new System.Drawing.Size(612, 17);
            this.hscrollbar.SmallChange      = 1;
            this.hscrollbar.TabIndex         = 1;
            this.hscrollbar.Value            = 0;
            this.hscrollbar.Scroll          += new System.Windows.Forms.ScrollEventHandler(this.hscrollbar_Scroll);
            //
            // baseGridsContainer1
            //
            this.baseGridsContainer1.Location     = new System.Drawing.Point(213, 87);
            this.baseGridsContainer1.MoveX        = 0;
            this.baseGridsContainer1.Name         = "baseGridsContainer1";
            this.baseGridsContainer1.Size         = new System.Drawing.Size(363, 284);
            this.baseGridsContainer1.TabIndex     = 6;
            this.baseGridsContainer1.NeedRefresh += new System.EventHandler(this.baseGridsContainer1_NeedRefresh);
            //
            // baseGridsPinnedCols
            //
            this.baseGridsPinnedCols.Location     = new System.Drawing.Point(0, 0);
            this.baseGridsPinnedCols.MoveX        = 0;
            this.baseGridsPinnedCols.Name         = "baseGridsPinnedCols";
            this.baseGridsPinnedCols.Size         = new System.Drawing.Size(150, 150);
            this.baseGridsPinnedCols.TabIndex     = 0;
            this.baseGridsPinnedCols.NeedRefresh += new System.EventHandler(this.baseGridsContainer1_NeedRefresh);
            this.baseGridsPinnedCols.Load        += new System.EventHandler(this.baseGridsPinnedCols_Load);
            //
            // DunaGridView
            //
            this.BackColor = System.Drawing.Color.DarkGray;
            this.Controls.Add(this.baseGridsContainer1);
            this.Controls.Add(this.baseGridsPinnedCols);
            this.Controls.Add(this.dunaGridAllSelector1);
            this.Controls.Add(this.dunaGridRowSelectorsColumn1);
            this.Controls.Add(this.dunaGridHeaderRow1);
            this.Controls.Add(this.vscrollbar);
            this.Controls.Add(this.hscrollbar);
            this.Name  = "DunaGridView";
            this.Size  = new System.Drawing.Size(612, 394);
            this.Load += new System.EventHandler(this.DunaGridView_Load);
            this.ResumeLayout(false);
        }