This is a migrated thread and some comments may be shown as answers.

TableGroups and KeepTogether=false doesnt work

1 Answer 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 04 Jun 2014, 09:29 AM
Hi,

Ive been struggeling with an issue for a while now, and thought try to ask for help here.

So my scenario is:

1. Im creating a report in Visual Studio 2013, using the regular VS designer
2. I add a table to the report
3. I add a ObjectDatasource to the table - the object holds a collection, which I choose as member.
4. I then add a grouping, by using the Group Explorer, and ensure that the group has KeepTogether = false.
5. I set KeepTogether = false on the table itself.

So with this procedure I expect to get lines of data, grouped into groupings, and the groups should not pagebreak, even if they cannot fit entirely on the current page.
But this is exactly what happens - no matter what I seem to do, the groups keeps creating pagebreaks, if they cannot entirely fit the current page.

I have attached some screenshots, which showcases the issue.

Thanks in advance :)

1 Answer, 1 is accepted

Sort by
0
Lars
Top achievements
Rank 1
answered on 04 Jun 2014, 10:14 AM
So I managed to solve the problem.

The issue was the TextBox which displays the grouping.
This textbox defaults to KeepTogether=true, and forces the groups to display entirely on a page.

So my solution was to set KeepTogether=false on the textbox which displays the group.
Tags
General Discussions
Asked by
Lars
Top achievements
Rank 1
Answers by
Lars
Top achievements
Rank 1
Share this question
or