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

Column Reordering Fails

1 Answer 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Greg Montoya
Top achievements
Rank 1
Greg Montoya asked on 10 Aug 2009, 08:21 PM
I am using RadControls for WinForms Q2 2009 in VS2008.  I am able to set the RadGridView control's datasource to a DataTable.DefaultView and enable reordering of the columns.  I am able to perform a drag/drop reordering of the columns.
My problem occurs when the datasource changes to a different DataTable.DefaultView.  The columns no longer respond to the drag/drop column reordering feature.  I've attempted setting the MasterGridViewTemplate.AllowColumnReorder to true, but that fails to work.  Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Greg Montoya
Top achievements
Rank 1
answered on 10 Aug 2009, 08:43 PM
Nevermind. I solved it by setting the GridView.Datasource = null before binding to the new datasource.
Tags
GridView
Asked by
Greg Montoya
Top achievements
Rank 1
Answers by
Greg Montoya
Top achievements
Rank 1
Share this question
or