I have an incorrect grouping message on the last page of my Grid:
"Business Unit: Technical Services (Showing 3 of 11 items. Group continues on
the next page.)"
This is incorrect - there are only 3 records in this group and they are the last 3 records of the set. The virtual item count appears to be set correctly. If I set my page size to 10 or 20 from 50, the message no longer shows. For a Page Size of 30 records, the message is "Showing 3 of 21 items".
How do I fix this message?
The grouping code is as follows:
GridGroupByExpression expression1 = new GridGroupByExpression(),
expression2= new GridGroupByExpression(),
expression3 = new GridGroupByExpression();
expression1.SelectFields.Add(GetGridGroupByField("Division", "Division"));
expression1.GroupByFields.Add(GetGridGroupByField("Division", null));
expression2.SelectFields.Add(GetGridGroupByField("BusinessUnit", "Business Unit"));
expression2.GroupByFields.Add(GetGridGroupByField("BusinessUnit", null));
expression3.SelectFields.Add(GetGridGroupByField("State", "State"));
expression3.GroupByFields.Add(GetGridGroupByField("State", null));
rg.MasterTableView.GroupByExpressions.Add(expression1);
rg.MasterTableView.GroupByExpressions.Add(expression2);
rg.MasterTableView.GroupByExpressions.Add(expression3);