I have been fighting this for over a week. Digging through documentation, forums, bing, google, trial and error etc... And for some reason I cannot figure out how to do something that should be simple.
The Scenario.
I have a data object, for example we will call it GroupDTO. This object consists of some properties, for Example GroupName and GroupID. It also has a property that is a list of another data object, we shall call it UserDTO, and the property on GroupDTO is List<UserDTO>. UserDTO contains properties such as LogIn, FirstName and LastName. Lets say the first groups name is Administrators and the second groups name is Commoners. On my report I want it to show as...
Administrators
Name
Smith, John
Doe, John
Commoners
Name
Doe, Jane
I have tried creating a list, setting my DataSource to GroupDTO. Then setting it to a List<GroupDTO>. This works. Then I tried adding a row inside the group and inserting a second list into that row. I set its DataSource to UserDTO then I created a binding of DataSource = ReportItem.DataObject.Users. I added a row to this list outside of the group above and put Name in the first column. Then in the second row (inside the group) I have two columns, one for LastName, and one for FirstName . What I end up with is ....
Administrators
Name
Smith, John
Doe, John
Commoners
Name
Smith, John
Doe, John
Administrators
Name
Smith, John
Doe, John
Commoners
Name
Smith, John
Doe, John
So for some reason it is duplicating my group names, and then under the groups instead of getting the users for that group I get the users for the first group every time. Can anyone send an example that works for my scenario, or figure out what I may be doing wrong? I have verified that my data is correct in my List<GroupDTO>. I am also using Telerik Reporting Q3 2010 version.
public class ReportEnCirculationVM { public IList<MembreCirculation> membresCirculation { get; set; } public ExemplairePeriodique exPerio { get; set; }...}
=IIF(Fields.Approuvee = 0,"Non approuvée", null)The Report Viewer is showing:
Jones
FirstName Position Age
Fred Engineer 45
Harold Janitor 36
Smith
FirstName Position Age
Sally Secretary 32
Mary Attorney 33
I want to show this:
Jones -------------------------------------------------------
FirstName: Fred
Position: Engineer
Age: 45
FirstName: Harold
Position: Janitor
Age: 36
Smith ----------------------------------------------------------
FirstName: Sally
Position: Secretary
Age: 32
FirstName: Mary
Position: Attorney
Age: 33
Notice how those who share the same last name are under the same LastName header.
I want to have a row layout not a column layout.
Is this possible?
Also, how do you page break? The Report Viewer keeps doing this:
Jones
------------------------------ PAGE BREAK --------------------------
FirstName Position Age
Fred Engineer 45
Harold Janitor 36
It's splitting my groups up.
Any suggestions?