Page 1 of 1

how to get your Group By to sort ASC or DESC

Posted: Fri Oct 29, 2010 12:49 pm
by frisco434
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?

how to get your Group By to sort ASC or DESC

Posted: Mon Nov 01, 2010 7:27 am
by Alex K.
Hello,

This grouping can be implemented, if to set the GroupHeader Sort Direction to None. In this case, the report will be grouped depending on sorting in the DataBand.

Thank you.

how to get your Group By to sort ASC or DESC

Posted: Mon Nov 01, 2010 7:42 am
by frisco434
great that worked !!! Thanks a bunch !

how to get your Group By to sort ASC or DESC

Posted: Mon Nov 01, 2010 7:45 am
by Alex K.
Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.