Posts

Showing posts with the label Groups

GridViewHelper and Nested groups in GridView

Image
Few days ago, One of my team member has faced a problem creating nested groups with a summary of inner group's footer. Following image shows the DataTable picture which contains the data to be bind in the grid. protected void GroupingGridView() {        GridViewHelper moGrouping = new GridViewHelper(this.gvObject);        moGrouping.RegisterGroup("Customers", true, false);        moGrouping.RegisterGroup("Products", true, false);        moGrouping.GroupHeader += new HeaderEvent(GroupHeaderHandler);        moGrouping.RegisterSummary("Amount", SummaryOperation.Sum, "Products");        moGrouping.GroupFooter += new FooterEvent(GroupFooterHandler);        GridViewSummary moGrandSummary = moGroupingIN.RegisterSummary("Amount", SummaryOperation.Sum);   ...