Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

AllowMergeFromPreviousDefault Property, ColumnClass Class

Defines the CellBaseClass.AllowMergeFromPrevious property default for cells in this column, whether cells in this column allow merging with cells in the previous column.

Class: ColumnClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public bool AllowMergeFromPreviousDefault { get; set; }
Public Property AllowMergeFromPreviousDefault As Boolean

Value

True if cells in this column allow merging with cells in the previous column, otherwise False.

The default value is False.

Comments

Defines the CellBaseClass.AllowMergeFromPrevious property default for cells in this column, whether cells in this column allow merging with cells in the previous column.

The default settings for cell merging can be defined using these properties: ColumnClass.AllowMergeFromPreviousDefault is used for cells in the item area, HeadersClass.AllowMergeFromPreviousDefault for cells in column headers and FootersClass.AllowMergeFromPreviousDefault for cells in column footers.

Examples

C#

        }

        private void Form1_Load(object sender, EventArgs e) {
            sftTree1.Columns.Count = 2;
            sftTree1.Headers.Reorderable = sftTree1.Footers.Reorderable = false;
            sftTree1.Headers.MergeWithNextDefault = true;
            sftTree1.Headers.AllowMergeFromPreviousDefault = true;
            sftTree1.Columns[0].MergeWithNextDefault = true;
            sftTree1.Columns[1].AllowMergeFromPreviousDefault = true;
            sftTree1.MergeStyle = MergeStyleEnum.EmptyCells;
            sftTree1.AutoRespond = false;
            sftTree1.RowHeaders.Width = 0;
            LoadAssembly(Assembly.GetExecutingAssembly());
        }

        private void ExpandCollapseItem(ItemClass item)

See Also ColumnClass Class | Classes | SftTree/NET 2.0