Hello,
I have a WebGrid where data from a search result is shown, some parts of it are calculated from original database rows, which in turn means that each row in the Grid has at least 2 corresponding rows in the backend.
For the users sake, i have enabled OutlookGroupBy to make summing up, sorting and showing values easier and more comprehensible, so this is absolutely needed - but i would also need to show the corresponding backend rows for each row in the grid (possibly for editing/updating). This would lead me to using multiple bands.
I have tried both, both work fine seperately - but is there a way to use them together?
Best regards,
Alexander Strnad
Setting OutlookGroupBy is like setting the property to Hierarchical as well as OutlookGroupBy. When you have it set the grid should automatically pick up any hierarchy you have set up in the grid.
Helen
Ok. I have the grid bound to an IList<BusinessObject> and the BusinessObject has a property which exposes an IList<OtherBusinessObject>. I have set the band 0 childbandcolumn to the name of the property and added band 1 with the same name and some colums that exist as properties inside the OtherBusinessObject.
When i populate the grid with data, band0 has data, but no + signs to expand for band 1 - is there something i forgot?
Alex
I Havent tried with business object but if the datasource hase a relation like in a dataset the grid automatically wil put the + sign
The two posts i marked as answers above hit the spot. I also filed a bug report about the WebGrid displaying subbands for System.Collections.IList, but not for System.Collections.Generic.IList<T> if this is your issue. Just make the signature of your property an IList and it will work. Hopefully there will be a fix soon.
HTH,
Can u help to know the solution for this issue because i am also facing the same issue.
Any help is highly appreciated
thanks
bhavani
It should be creating a child band automatically from the IList property in your business logic. I'm not sure why it wouldn't be working. I'd recommend submitting a support incident so the developer support team can help you figure out what's going wrong in your project.
How can i get the IList property from the businessobject to be displayed as the subband? This is driving me nuts... Any help is highly appreciated.