示例#1
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;
        }
示例#2
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;
        }