Exemple #1
0
 private void CreateTopLeftButton()
 {
     if (topLeftButton == null)
     {
         topLeftButton      = new TableColumnButton(ColumnsStyle);
         topLeftButton.Size = new Size(40, 20);
         Controls.Add(topLeftButton);
     }
 }
Exemple #2
0
        private void CreateTopLeftButton()
        {
            if (topLeftButton == null)
            {
                topLeftButton = new TableColumnButton(this, ColumnsStyle);
                topLeftButton.Name = "topLeftButton";
                topLeftButton.Size = new Size(40, 20);
                Controls.Add(topLeftButton);
            }

            topLeftButton.Visible = !rowHeadersHidden && !columnHeadersHidden;
        }
Exemple #3
0
        internal void UpdateColumn(TableColumn column)
        {
            CreateTopLeftButton();

            if (column.control == null)
            {
                var cButton = new TableColumnButton(this, ColumnsStyle);
                cButton.column = column;
                cButton.EnableHorizontalResizing = true;
                cButton.Name  = column.Name;
                cButton.table = this;
                cButton.Text  = column.HeaderText;

                column.control = cButton;
                Controls.Add(cButton);
            }

            column.control.Visible = !columnHeadersHidden;
        }
Exemple #4
0
        internal void UpdateColumn(TableColumn column)
        {
            CreateTopLeftButton();

            if (column.control == null)
            {
                var cButton = new TableColumnButton(ColumnsStyle);
                cButton.column = column;
                cButton.EnableHorizontalResizing = true;
                cButton.table = this;
                cButton.Text  = column.HeaderText;

                column.control = cButton;
                Controls.Add(cButton);
            }

            AlignColumns();

            UpdateRows();
        }
Exemple #5
0
        private void CreateTopLeftButton()
        {
            if (rowHeadersHidden)
            {
                if (topLeftButton != null && topLeftButton.IsDisposed == false)
                {
                    topLeftButton.Dispose();
                    topLeftButton = null;
                }
                return;
            }

            if (topLeftButton == null)
            {
                topLeftButton      = new TableColumnButton(this, ColumnsStyle);
                topLeftButton.Name = "topLeftButton";
                topLeftButton.Size = new Size(topLeftButtonWidth, 20);
                Controls.Add(topLeftButton);
            }

            topLeftButton.Visible = !rowHeadersHidden && !columnHeadersHidden;
        }
Exemple #6
0
        internal void UpdateColumn(TableColumn column)
        {
            CreateTopLeftButton();

            if (column.control == null)
            {
                var cButton = new TableColumnButton(this, ColumnsStyle);
                cButton.column = column;
                cButton.EnableHorizontalResizing = true;
                cButton.Name = column.Name;
                cButton.table = this;
                cButton.Text = column.HeaderText;

                column.control = cButton;
                Controls.Add(cButton);
            }

            column.control.Visible = !columnHeadersHidden;
        }