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

Sorting Issue in Grid

5 Answers 244 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 27 Sep 2007, 02:45 AM
Hi Telerik,

I face another problem again. This time with sorting. I bound my grid to dataset and never set any sorting. I disabled the EnableSorting, AllowNaturalSort and anything related with sorting.

Let say I have 5 unsorted entry in grid and if i rebinding again to dataset the previous sorting is gone. The grid will re sort ASCENDING.

Please help

5 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 27 Sep 2007, 08:06 AM
Hello Erik,

The problem may be the SortExpressions collection of the MasterGridViewTemplate of the RadGridView. Try to clear this collection and then rebind the RadGridView with the new data.

I hope this was helpful. Please contact me again if I can be of any further assistance.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Erik
Top achievements
Rank 1
answered on 27 Sep 2007, 01:13 PM
Hi Telerik,

I never set any SortExpression and also I did SortExpression.clear And still the grid will sort ASCly

Thanks
0
Erik
Top achievements
Rank 1
answered on 27 Sep 2007, 01:13 PM
Hi Telerik,

I never set any SortExpression and also I did SortExpression.clear And still the grid will sort ASCly

Thanks
0
Erik
Top achievements
Rank 1
answered on 27 Sep 2007, 01:13 PM
Hi Telerik,

I never set any SortExpression and also I did SortExpression.clear And still the grid will sort ASCly

Thanks
0
Julian Benkov
Telerik team
answered on 27 Sep 2007, 01:58 PM
Hello Erik,

Maybe the DataTable is sorted before the RadGridView binding process.

Unfortunately we are not able to reproduce this behavior with the information provided. Will it be possible for you to send us a simple project to reproduce problem locally? A small part of your data file will help as well.

Thank you in advance.

All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Erik
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Erik
Top achievements
Rank 1
Share this question
or