Defines the status of the cell's sorting indicator.
Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public SortStatusEnum SortStatus { get; set; }
Public Property SortStatus As SortStatusEnum
The sort status.
The default value is SortStatusEnum.NotSorted.
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.
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
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