We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grid grouping control maximum nesting level (7 Levels)

Version 16.1460.0.37

I am having the same issue that this user previously reported:
https://www.syncfusion.com/forums/96332/grid-grouping-control-maximum-nesting-level

When using a self referencing class object added to a BindingList as a datasource I only get tables down to level 7 (see attached screenshot in .rar)

Public Class TableItem
     Public Property wbsItemId As Integer
     Public Property ParentWBSItem as TableItem
     Public Property ParentId As Integer
     Public Property WBSItemName As String
     Public Property WBSChildren As BindingList(Of TableItem)
End Class

Private Sub AddItems()
        Dim wbsGridItembindingList As New BindingList(Of TableItem)
        Dim newWbsItem As New TableItemWith {.wbsItemId = iteratorNum, .ParentWBSItem = Nothing, .WBSItemName = "Item" & 1}
        wbsGridItembindingList.Add(newWbsItem)
        Dim newWBSParentItem As TableItem= newWbsItem

        For x As Integer = 2 To 10
            Dim newChildWbsItem As New TableItem With {.wbsItemId = x, .ParentWBSItem = newWBSParentItem, .WBSItemName = "Item" & x}
            newWBSParentItem.WBSChildren.Add(newChildWbsItem)
            newWBSParentItem = newChildWbsItem
        Next

        Me.GridGroupingControl1.DataSource = wbsGridItembindingList
End Sub

Attachment: NestedTableLimit_b9ebe3e9.rar

1 Reply

AA Arulraj A Syncfusion Team March 8, 2019 06:04 AM UTC

Hi Tim, 

Thanks for using Syncfusion product. 

To use more than 7 level of child table you could use the MaxNestedCollectionRecurseLevel property. Please refer the following code example and the sample. 

Code example 
Me.gridGroupingControl1.Engine.MaxNestedCollectionRecurseLevel = 10
 
Screenshot 
 
 
 
Please get back to us if you need any further assistance on this. 

Regards, 
Arulraj A 


Loader.
Live Chat Icon For mobile
Up arrow icon