Sorting Problem With Grouping

Stimulsoft Reports.NET discussion
Post Reply
spnvelvet
Posts: 35
Joined: Mon Jan 11, 2010 11:59 am

Sorting Problem With Grouping

Post by spnvelvet »

Dear Sir,

When I create a group, the data shown is no longer in the order in which it is retrieved.

I am using latest pre-release build.
Attachments
Incorrect Sorting.png
Incorrect Sorting.png (300.83 KiB) Viewed 2662 times
Actual Data.png
Actual Data.png (388.52 KiB) Viewed 2662 times
ExamSys2.7z
(142.86 KiB) Downloaded 328 times
rStdC.mrt
(14.4 KiB) Downloaded 272 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Sorting Problem With Grouping

Post by Alex K. »

Hello,

Please try to set the SortDirection property for GroupHeader component to None.

Thank you.
spnvelvet
Posts: 35
Joined: Mon Jan 11, 2010 11:59 am

Sorting Problem With Grouping

Post by spnvelvet »

Dear Sir,

I have set sorting for group to None. And data is showing now in the same order in which it is fetched.

But this behaviour is weird.

Is this a bug?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Sorting Problem With Grouping

Post by HighAley »

Hello.
spnvelvet wrote:I have set sorting for group to None. And data is showing now in the same order in which it is fetched.

But this behaviour is weird.

Is this a bug?
No, it's not a bug. It's a usual behaviour of the Group Header band. Because it can't group data band right without sorting on group field.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Sorting Problem With Grouping

Post by Alex K. »

Hello,

No, it is not a bug. When you set the grouping then, according to the logic, it should sort all the data by that column, by which sorting is set, for the correct group. If you remove the sort for GroupHeader, the data will be displayed in order in which they are got, and the group would "torn".

Thank you.
spnvelvet
Posts: 35
Joined: Mon Jan 11, 2010 11:59 am

Sorting Problem With Grouping

Post by spnvelvet »

Dear Sir,

It means that after grouping, we have to perform sorting again using "Sort" options of Data Band.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Sorting Problem With Grouping

Post by HighAley »

Hello.
spnvelvet wrote:It means that after grouping, we have to perform sorting again using "Sort" options of Data Band.
You should do so to sort data in each group.

Thank you.
Post Reply