Vikas
Vikas

Reputation: 178

Change column position in XamDataGrid at runtime

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

Answers (1)

Vikas
Vikas

Reputation: 178

This work for me:

  fieldLayout.Fields[columnlist[i]].ActualPosition = new FieldPosition(i, 0, 0, 0);

Upvotes: 0

Related Questions