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

How to sort a report in preview

$
0
0

This example demonstrates how to implement sorting in print preview.

For this, handle the PreviewClick event of a column header control (e.g. XRLabel or XRTableCell), then specify a report's sorting options via its Detail.SortFields property, and at last refresh the document by calling the CreateDocument method.

Note: It's also very convenient to store the data field name in the control's Tag property, instead of trying to parse the control's binding.

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


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>