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

avoid sorting on a column

3 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anumeha
Top achievements
Rank 1
Anumeha asked on 08 Oct 2010, 09:30 PM
Hi,

I am binding my grid to a sorted view which is sorted on column A in Ascending order like this:
DataTable1.DefaultVew.Sort  = "A ASC";
RadGrid1.Datasource = DataTable1.DefaultView.ToTable();

The grid should look like this as the sorting is done by col A:
A (datetime)    B(string)     C(string)
10 AM                  xxx                Meeting
11 AM                  xxy                Call
2 PM                    xyx                Project
3 PM                    zxx                Appointment

Somehow after I bind the grid the sorting is changing to be sorted in Ascending order by col C.The grid is being rendered as:
A (datetime)    B(string)     C(string)
3 PM                    zxx                Appointment
11 AM                  xxy                Call
10 AM                  xxx                Meeting
2 PM                    xyx                Project

I have allowsorting set to false for the grid.
Could you tell me what's wrong here.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Oct 2010, 07:31 AM
Hello Anumeha,

What is the observed behavior if you bind an asp:GridView control to your datasource? Does it display the data as expected?

Sincerely yours,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anumeha
Top achievements
Rank 1
answered on 12 Oct 2010, 06:07 PM
Hi Dimo,

When I bind the datasource to GridView the data is displayed in the desired order.
Please let me know if there's something I could do to avoid this on the grid. This is a high priority for me.

Thanks.
0
Dimo
Telerik team
answered on 13 Oct 2010, 07:48 AM
Hello Anumeha,

In this case, please prepare a standalone runnable web page with a sample datasource and send it as an attachment for further inspection (in a formal support ticket). Thank you.

Sincerely yours,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Anumeha
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Anumeha
Top achievements
Rank 1
Share this question
or