HeaderPane
Main
Hide
Share Link
Print

GridLines Property, SftTree Class

Defines the grid lines style for all cells in the tree control.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public GridLinesStyleEnum GridLines { get; set; }
Public Property GridLines As GridLinesStyleEnum

Value

The grid lines style.

The default value is GridLinesStyleEnum.Both.

Comments

Defines the grid lines style for all cells in the tree control.

The grid lines styles default for all cells is defined using the control's GridLines property. Columns can override the default for cells in one column using the ColumnClass.GridLines property. In turn, cells can override that default using the CellClass.GridLines property.

Grid lines colors can be defined using the SftTree.GridHorizontalColor and SftTree.GridVerticalColor properties.

SftTree.GridLinesPen defines the pen style used to draw grid lines.

Grid lines are only used in the item area.

Examples

C# View entire sample code

            sftTree1.Initializing = true;
            sftTree1.Splitter.Visible = false;
            sftTree1.RowHeaders.Width = 0;
            sftTree1.Columns[1].Width = 0;
            sftTree1.Columns[2].Width = 0;
            sftTree1.Columns[3].Width = 0;
            sftTree1.Columns[4].Width = 0;
            sftTree1.Columns[5].Width = 0;
            sftTree1.GridLines = GridLinesStyleEnum.None;
            sftTree1.Headers.Visible = false;
            sftTree1.Footers.Visible = false;
            sftTree1.Initializing = false;
        }

        private void ComplexTree() {
            sftTree1.Initializing = true;

VB.NET View entire sample code

    sftTree1.Initializing = True
    sftTree1.Splitter.Visible = False
    sftTree1.RowHeaders.Width = 0
    sftTree1.Columns(1).Width = 0
    sftTree1.Columns(2).Width = 0
    sftTree1.Columns(3).Width = 0
    sftTree1.Columns(4).Width = 0
    sftTree1.Columns(5).Width = 0
    sftTree1.GridLines = GridLinesStyleEnum.None
    sftTree1.Headers.Visible = False
    sftTree1.Footers.Visible = False
    sftTree1.Initializing = False
End Sub
Private Sub ComplexTree()
    sftTree1.Initializing = True
    sftTree1.Splitter.Visible = True

See Also SftTree Class | Classes | SftTree/NET 3.0