Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

SortStatus Property, CellBaseClass Class

Defines the status of the cell's sorting indicator.

Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public SortStatusEnum SortStatus { get; set; }
Public Property SortStatus As SortStatusEnum

Value

The sort status.

The default value is SortStatusEnum.NotSorted.

Comments

Defines the status of the cell's sorting indicator.

The position of the sorting indicator is defined using the CellBaseClass.SortIndicatorPosition property. If the CellBaseClass.SortIndicatorPosition is set to SortIndicatorPositionEnum.None, the SortStatus property is ignored.

Examples

C#

            cell.Parts.Add(ip);
            tp = new TextPartClass("Third part");
            tp.HAlign = HAlignmentOptionalEnum.Left;
            cell.Parts.Add(tp);

            // Set a sorting indicator in the first column header
            cell = sftTree1.Headers[0,0];
            cell.SortIndicatorPosition = SortIndicatorPositionEnum.Side;
            cell.SortStatus = SortStatusEnum.Ascending;

            sftTree1.Columns.MakeOptimal(0, false);
            sftTree1.RecalcHorizontalExtent();
            sftTree1.Initializing = false;
        }

        // Dropdown button Action event

VB.NET

    cell.Parts.Add(ip)
    tp = New TextPartClass("Third part")
    tp.HAlign = HAlignmentOptionalEnum.Left
    cell.Parts.Add(tp)

    ' Set a sorting indicator in the first column header
    cell = sftTree1.Headers(0, 0)
    cell.SortIndicatorPosition = SortIndicatorPositionEnum.Side
    cell.SortStatus = SortStatusEnum.Ascending

    sftTree1.Columns.MakeOptimal(0, False)
    sftTree1.RecalcHorizontalExtent()
    sftTree1.Initializing = False
End Sub

' Dropdown button Action event

See Also CellBaseClass Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.