how to get your Group By to sort ASC or DESC
Posted: Fri Oct 29, 2010 12:49 pm
Hey all quick question I have a report that has a group by but i need it to sort ascending. The .net data table that im loading in is sorted how i want it, but the stimulsoft engine must render it how it wants because when the report displays the order is all messed up. Im sure there is property to tell the groupby how to sort but im not sure what it is. Heres the code that sets the condition , where can i add the ASC or DESC and what does the syntax look like. Thanks !
GroupHeaderBand.Condition = new StiGroupConditionExpression("{" + sGroupByField + "}");
looking through the manual it states:
It is necessary to have the Data band because data rows are output with use of this band. And these data rows are the base of grouping. Also you may specify the sorting of rows in the Data band. The data sorting has effect on order of grouping rendering.
how do i specify this?
GroupHeaderBand.Condition = new StiGroupConditionExpression("{" + sGroupByField + "}");
looking through the manual it states:
It is necessary to have the Data band because data rows are output with use of this band. And these data rows are the base of grouping. Also you may specify the sorting of rows in the Data band. The data sorting has effect on order of grouping rendering.
how do i specify this?