views:

354

answers:

1

Hi!

My application uses the WPF DataGrid control with custom columns. Although the property Columns is an ObservableCollection<>, the invocation of the method Move does not effect the order of the columns in any way.

Can I somehow reorder the columns of a WPF Toolkit DataGrid programmatically?

Best Regards
Oliver Hanappi

+2  A: 

You can use the DisplayIndex property of a DataGridColumn (use datagrid.Columns to retrieve the columns collection).

Jalfp