ClientId: 11 ClientName: Client B
Invoice 1
Invoice 2
Invoice 3
ClientId: 24 ClientName: Client A
Invoice 1
Invoice 2
Invoice 3
or by name
ClientId: 24 ClientName: Client A
Invoice 1
Invoice 2
Invoice 3
ClientId: 11 ClientName: Client B
Invoice 1
Invoice 2
Invoice 3
For the moment, I've created this method and called from the GroupHeader condition "{SortGroups()}":
Code: Select all
public string SortGroups()
{
// sortByClientName is a dictionary variable
if (sortByClientName)
// Adding CLIENTID makes the groups unique because some clients have the same name
return MYDATATABLE.CLIENTNAME + MYDATATABLE.CLIENTID;
return MYDATATABLE.CLIENTID.ToString();
}
If I solved my problem why I'm asking? Well by 2 reasons, first is I avoid write code in the reports and I can't find a way to configure this from the designer.
Second, to share it with all.
Any sugestions?
Regards,
Scott.