Hello,
We want to use a hierarchical Datasource. This works fine for the rootlevel, one intermediate level and the itemlevel. But I can't see any further intermediate levels. At all levels we use Bindinglists. The datasource is constructed by recursion, which means we expose on any level a property SubGroups containing the grouping value and another SubGroups property until the itemlevel is reached. Is it a problem to have the same names for the properties?
Thanks a lot
Martin
Thank you Matt and Mike,
Now it's working fine. The reason was a configuration error in the datasource, preventing the grid to show more rows, like Matt assumed in his post.
Make sure you have the latest service release, too. There was a bug which was fixed a while ago where the grid would not show any resursive data past the third level.
There are a few examples of hierarchical data sources that ship with the grid Samples Explorer, which is part of the NetAdvantage SDK. One example is the Row Edit Templates example, though I think this and many other samples use the Northwind sample database for hierarchical data structures. It sounds like there might be an issue with your data source that is preventing additional rows from showing up. Another possibility is that the first row in your structure, assuming you're working with a custom class and not something like a DataSet, does not have many descendants and so the .NET BindingManager cannot properly determine the structure. For example, if the first row only has a single child row (and no grandchildren), then you may only have 2 bands. If this is the case, you might consider looking into implementing the ITypedList interface on your data class.
-Matt
Thanks Matt,
I was afraid you were writing this. Unfortunatly i didn't touch the MaxBandDepth so the value is 100 i guess thats the default. So there has to be an error with the datasource. Is there an example of a hierarchical datasource?
Martin,
Having the same name for properties shouldn't be a problem; if it were, then there would certainly be larger issues getting recursive data sources to work :-) The only issue that I can think of off the top of my head is that you've set the MaxBandDepth on the DisplayLayout to a value small enough that it would affect the number of bands that are created. It may be worth testing to see if it's a problem with your data source by using the .NET DataGrid.