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.