I have a grid with multiple columns and users can sort based on any column. Data, which is bound the grid is a collection of custom entity. I have a print button on the scre
You have to use the yourDataGrid.Items, Items reflect the currentview of the grid. and you have to convert using the method Cast and after use .ToList();
imagine this
List myListOfMyClass = new List();
myGrid.ItemSource = myListOfMyClass;
List myListOfMyClassSortedByTheUser = myGrid.Items.Cast().ToList();