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

Custom sorting - how to exclude the first row from sorting

$
0
0

This example demonstrates how to handle the ASPxGridView.CustomColumnSort event to sort all rows except for the first visible row.

Question Comments

Added By: Milind Kadbane at: 8/18/2015 10:05:55 PM    

We had exactly the same requirement and using this example it worked properly till the devexpress version 13.1.7.0. We recently upgraded to version 14.1.11.0 of the devexpress. The same custom sort started giving random results. We fixed it by changing the following line "e.Result = (e.SortOrder == DevExpress.Data.ColumnSortOrder.Ascending ? -1 : 1".  Instead of -1 we assigned it to 0 :) after  some trial and error. No other change in any line. And it worked. Posted this as it might be helpful to anyone visiting this link.

Added By: Paul (DevExpress Support) at: 8/19/2015 1:16:38 AM    Hi,

It is weird, I've ran this example on the latest version (15.1.5) and everything works perfectly. I've created a separate ticket on your behalf to discuss this behavior and find out what is going on. Please refer to E2207 doesn't work in version 14.1.11

Viewing all articles
Browse latest Browse all 7205

Trending Articles



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