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

How to change itemsource's index when sorted

2 Answers 169 Views
GridView
This is a migrated thread and some comments may be shown as answers.
rui
Top achievements
Rank 1
rui asked on 29 Apr 2016, 09:44 AM

When I click the column header to sort the gridview   the itemsource's index is not change  

is any way to change the index

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Nenchev
Telerik team
answered on 29 Apr 2016, 10:57 AM
Hello,

When sorting, the ItemsSource collection of the RadGridView remains unchanged. If you want to access the collection of the sorted items, you need to work with the Items collection of the RadGridView. Please check the following article from our documentation page - How To Access Sorted and Filtered Items.

Regards,
Stefan Nenchev
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
rui
Top achievements
Rank 1
answered on 29 Apr 2016, 12:34 PM
thank you!
Tags
GridView
Asked by
rui
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
rui
Top achievements
Rank 1
Share this question
or