This is a migrated thread and some comments may be shown as answers.

Custom Sorting on Substring of Data

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 14 Mar 2013, 04:25 PM
Hello,

Can somebody point out how I might set a custom sort order on a column with following data:-

A/101
B/100
C/102
D/103
E/99
F/75
F/70
F/35

I want to be able to sort on just the numeric part and ignore the first two characters ie "A/"

Anybody got any ideas?

Many thanks

Terry

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 Mar 2013, 11:08 AM
Hi Terry,

Thank you for writing.

You should use the custom sorting functionality of RadGridView to achieve your scenario: http://www.telerik.com/help/winforms/gridview-sorting-custom-sorting.html.

I hope that you find this information useful.

Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
GridView
Asked by
Terry
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or