Reputation: 178
I am working on XamDataGrid binded with the list of columns. I want to change the column position on the XamDataGrid on load using MVVM. I have created the behavior of the XamDataGrid.
Can suggest solution according to my requirement?
Upvotes: 0
Views: 783
Reputation: 178
This work for me:
fieldLayout.Fields[columnlist[i]].ActualPosition = new FieldPosition(i, 0, 0, 0);
Upvotes: 0