Free Support Forum - aspose.com

WebGrid with Hierarchical custom collections

We are using custom collection rather than datasets throught our the project and the existing DAL layer returns custom collection. I’d like to to hierarchical grid features with custom collections rather than datasets as shown in your tech notes. Is it possible? If so, can you provide sample code? Is converting custom collection to datasets the only way we’d be able to do this?

We are using GridWeb with C#

Hi,

Well, currently you only need to convert custom collection to datasets to bind the gridweb’s hierarchical attributes.

Thank you.

Hi,

We have logged your feature request into our issue tracking system with an id: CELLSNET-17552. We will look into it soon.

Thank you.

Hi,

We have implemented a class named “CustomCollectionHelper”
which provides two methods (ConvertRelatedDataSet) to convert hierarchical
custom collections to dataset which contains relations. Please try attached
sample file with Aspose.Cells.GridWeb v<st1:chsdate isrocdate=“False” islunardate=“False” day=“30” month=“12” year=“1899” w:st=“on”>2.2.0</st1:chsdate>.2003 (attached).

Thank you.