public GridViewHelper(GridView grd, bool useFooterForGeneralSummaries, SortDirection groupSortDirection) { this.mGrid = grd; this.useFooter = useFooterForGeneralSummaries; this.groupSortDir = groupSortDirection; this.mGeneralSummaries = new GridViewSummaryList(); this.mGroups = new GridViewGroupList(); this.mGrid.RowDataBound += new GridViewRowEventHandler(RowDataBoundHandler); }