Use filtered rows from a extended datagrid from View Model
===

I'm using extended DataGrid http://wpfextendeddatagrid.codeplex.com/ to display and filter automatically rows in a DataTable with MVVM-Light. (But the problem also exists in many other situations like this where the control is very sophisticated and solves a lot of things on their own)

I also have to export the filtered rows in a CSV file.

The Export command code so I would keep it in the VM.
But the VM needs to see the filtered rows that are in the View and then breaks the rules of MVVM.

Do I have to leave the code to open the CSV file, to write to them etc, in the Code Behind of the View, or is there a more recommended solution?

Thank you!!
