WPF Data grid to CSV and HTML the easy way

added by mikej
11/11/2010 6:25:33 AM

0 Kicks, 138 Views

The WPF DataGrid can be a difficult beast to tame but it has a lot of built in power and once you get to understand the way that it works it can save you a lot of code and a lot of time. Converting its contents to CSV or HTML is a common requirement and there is a nice trick to doing the job using the Clipboard and a WPF command.