property Items.LockedItemCount(Alignment as VAlignmentEnum) as Long
Specifies the number of items fixed on the top or bottom side of the group.

 TypeDescription 
   Alignment as VAlignmentEnum A VAlignmentEnum expression that specifies the top or bottom side of the group.  
   Long A long expression that indicates the number of items locked to the top or bottom side of the group.   
A locked or fixed item is always displayed on the top or bottom side of the group no matter if the group's list is scrolled up or down. Use the LockedItemCount property to add or remove items fixed/locked to the top or bottom side of the group. Use the LockedItem property to access a locked item by its position. Use the ShowLockedItems property to show or hide the locked items. Use the CellCaption property to specify the caption for a cell. Use the CountLockedColumns property to lock or unlock columns in the group. Use the ItemBackColor property to specify the item's background color. Use the ItemDivider property to merge the cells.

The following sample adds a divider item that's locked to the top side of the first group in the control: ( Before running this sample please make sure that your control contains groups objects ):

With ExplorerTree1.Groups(0)
    .BeginUpdate
    .DrawGridLines = exNoLines
    With .Items
        .LockedItemCount(TopAlignment) = 1
        Dim h As HITEM
        h = .LockedItem(TopAlignment, 0)
        .ItemDivider(h) = 0
        .ItemHeight(h) = 24
        .CellCaption(h, 0) = "<b>Total</b>: $12.344.233"
        .CellCaptionFormat(h, 0) = exHTML
        .CellHAlignment(h, 0) = RightAlignment
    End With
    .EndUpdate
End With


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.