Type | Description | |||
Boolean | A boolean expression that indicates whether the control ensures that the focused item fits the control's client area after sorting the items. |
The following VB sample prevents scrolling the items, when the user calls the SortChildren method:
Private Sub Tree1_BeforeExpandItem(ByVal Item As EXGRIDLibCtl.HITEM, Cancel As Variant) With Tree1 Dim bEnsureOnSort As Boolean bEnsureOnSort = .EnsureOnSort .EnsureOnSort = False .Items.SortChildren Item, 0, False .EnsureOnSort = bEnsureOnSort End With End Sub
The sample sorts the child items, when the user expands an item.