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 can also just enumerate the Items property of your DataGrid. Unlike the ItemsSource property, the Items property appears to reflect exactly what's on the screen including sorting and filtering. For example:
foreach (var item in dataGrid.Items)
{
// do something
}