Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

Print Preview - How to implement a drop-down menu for sorting report data

$
0
0
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 initially assign a special value to the Tag property of the XRTableCell that represents a header cell.

To initiate sorting for a column, assign the "Sort_<FieldName>" string to Tag.
 
You can also implement a 'Clear All' label. To do so, assign the "Clear_Sort" string to the XRControl.Tag property.

Please note that with this approach, we do not recommend using the standard approach which implies using a band's SortFields collection.

See also:
How to: Sort a Report in the Preview
How to sort a report in preview


Viewing all articles
Browse latest Browse all 7205

Trending Articles