This is a migrated thread and some comments may be shown as answers.

[Solved] How to create group inside a group in data grid?

0 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kumar
Top achievements
Rank 1
Kumar asked on 26 Aug 2010, 04:34 AM
I have a data collection like the following

Sales
|- department
|- Date
|- sales amount
|- items (which is same as sales, which contains all sub department inside the department)

I want to create a grid, when it collapsed, the main line should show the sales of the department with total of all the sub department. When expanded, the main department should not show total instead all the child will show the total. Also I need to show the summary of all the department at the end for each department.

I am able to create a a treeview data grid but I can not create the summary row for each child row and not sure how to suppress the total when the tree is expanded. Is it possible to do it with regular grid? Any samples would be greatly appricated.
Thanks,
Tags
GridView
Asked by
Kumar
Top achievements
Rank 1
Share this question
or