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

First RadGridView fires second SortChanged

4 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Olan
Top achievements
Rank 1
Olan asked on 11 Jan 2011, 04:51 PM
I have two radgridviews in a user control. When a column in the first grid is clicked, it fires the SortChanging and SortChanged on the second grid. The second grid fires the correct correct event. Also, the first grid changes the sort direction arrow of the second grid. Does anyone know what's going on and how to I stop this behavior?

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 11 Jan 2011, 05:10 PM
Hello Olan,

to clarify, are you saying that whatever action you perform on Grid1, happens on Grid2? If so, do you have both grids hooked up to thesame binding source?
Richard
0
Olan
Top achievements
Rank 1
answered on 11 Jan 2011, 05:15 PM
I have a control that has an "All" grid and a "Selected" grid. I created the columns based upon a custom attribute assigned to a property in the datasource's underling class. I was assigning the same instance of the GridViewDataColumn to both grids. I've separated them into tow and all is working. It's the small things that always get me. Thank you for your quick response.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 11 Jan 2011, 05:18 PM
Hi Olan,

Are you saying that you now have this sorted?
Regards,
Richard
0
Olan
Top achievements
Rank 1
answered on 11 Jan 2011, 05:19 PM
Yes, the grids are now sorting correctly.
Tags
GridView
Asked by
Olan
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Olan
Top achievements
Rank 1
Share this question
or