how to get your Group By to sort ASC or DESC

Stimulsoft Reports.NET discussion
Post Reply
frisco434
Posts: 24
Joined: Tue Jul 20, 2010 8:30 am
Location: Toledo

how to get your Group By to sort ASC or DESC

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

how to get your Group By to sort ASC or DESC

Post 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.
frisco434
Posts: 24
Joined: Tue Jul 20, 2010 8:30 am
Location: Toledo

how to get your Group By to sort ASC or DESC

Post by frisco434 »

great that worked !!! Thanks a bunch !
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

how to get your Group By to sort ASC or DESC

Post by Alex K. »

Hello,

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

Thank you.
Post Reply