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

CustomFieldSort - How to sort field values by invisible data column values

$
0
0

This example shows how to sort column or row area fields by invisible data column values via the PivotGridControl.CustomFieldSort event. There are two columns in the project: Month and Order. The first column is visible and contains month names. Without custom sorting, they're shown in the wrong, alphabetical order: April, February, January, March. With custom sorting applied, their order is correct.

Question Comments

Added By: Simon Lee 10 at: 1/29/2014 7:40:24 AM    

Hey, According what you've said.I've successfully solved the problem.
Much appreciate it.

Added By: Matthew Graves at: 5/9/2016 4:01:42 AM    Hi. This example works perfectly for sorting within the pivot grid, but I get errors when I try to filter by a custom-sorted field. When opening the filter popup, the ListSourceRowIndex properties come through as -1, so you cannot obtain the value of invisible field used for sorting. How can the example be modified to work for both the grid and within the filter popup?

Viewing all articles
Browse latest Browse all 7205

Trending Articles



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