I need help for setting the order of columns in a
DataGrid populated by binding it with a fixed-type
collection of custom objects. Actually I don even know
where to start.
The binding was easy and works with a simple
myDataGrid.DataSource = myCollection;
But the order of the columns messes the data; related
columns appear separated each other. How can I specify
column ordering? Should I change the order in the
DataGrid (How?). Or there is a way to make Reflection
work automatically on the type to get the properties and
fields on the right order, so whenever I bind them with a
grid the columns appear in the right place?