Sorting in Groups

GroupBand outputs the entries into the report in the same order they are saved in the data source. Order property of the GroupBand sets the output order. There are 3 values of this property available: KeepOriginal – initial entries order, Ascending – the ascending sort of the entries, Descending - the descending sort of the entries.

SortExpression property sets sorting criterion.

Example of an ordered employee list grouped by the first letter of the name:

dataBand.DataSource = Employees; groupBand.GroupExpression = dataBand["EmployeeName"].ToString().Substring(0,1); groupBand.Order = Ascending; textBoxHeader.Value = Group; textBoxDetail.Value = dataBand["EmployeeName"]

 Report Template   Report  

Add Feedback