This example demonstrates how to implement a drop-down menu that allows you to choose the sort order for a table column and then sort a table.
This approach implies that you assign the "Sort_<FieldName>" string to the Tag property of the XRTableCell that represents a header cell. This will initiate sorting for a corresponding data column.
Please note that when using this approach, we recommend using a standard approach, i.e., not to adjust settings by using the band's SortFields collection.
See also:
How to: Sort a Report in the Preview
How to sort a report in preview
This approach implies that you assign the "Sort_<FieldName>" string to the Tag property of the XRTableCell that represents a header cell. This will initiate sorting for a corresponding data column.
Please note that when using this approach, we recommend using a standard approach, i.e., not to adjust settings by using the band's SortFields collection.
See also:
How to: Sort a Report in the Preview
How to sort a report in preview