Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
Rows not in visible area when sorted but scroll bar indicates it is at top
posted

Hi

I am getting some odd behaviour from WinTree 9.2. The size of the control is too small to make all nodes visible initially. If I set the sorttype of a column to ascending a subset of the rows is visible but the vertical scroll bar is at the top suggesting all data is visible. As soon as I scroll down the 'invisible' nodes reappear.

If I don't set sorttype the problem does not occur.

I don't know if this is related but the tree is bound to a self-referencing table. Sample code below.

Do I need to reposition after the sorttype is set somehow?

Thanks

Craig

         ds.Tables.Add(GetMyDataMethodCall)
         ds.Relations.Add("MyDataTable", ds.Tables(0).Columns("Id"), ds.Tables(0).Columns("PId"), False)
         UltraTree1.Override.ShowExpansionIndicator = ShowExpansionIndicator.CheckOnDisplay
         With UltraTree1
            .SetDataBinding(ds, "MyDataTable")
            .ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.OutlookExpress
            .ColumnSettings.ColumnSets(0).Columns("Id").Visible = False
            .ColumnSettings.ColumnSets(0).Columns("PId").Visible = False
            .ColumnSettings.ColumnSets(0).Columns("Level_No").Visible = False
            .ColumnSettings.ColumnSets(0).Columns("Code").SortType = Infragistics.Win.UltraWinTree.SortType.Ascending
            .ColumnSettings.ColumnSets(0).Columns("Account_Code").HeaderAppearance.TextHAlign = HAlign.Left
            .ColumnSettings.ColumnSets(0).Columns("Description").HeaderAppearance.TextHAlign = HAlign.Left
            .ColumnSettings.AutoFitColumns = AutoFitColumns.ResizeAllColumns
            .AllowKeyboardSearch = True
         End With