ComponentOne Grid for WPF: Using Grid for WPF > Exporting Data

Exporting Data

Starting with the 2009 v3 release of ComponentOne Grid for WPF, you can export data from a C1DataGrid control to a Microsoft Excel file using the ExportToExcel method. Using the ExportToExcel methods, you can export data to a file or stream. The FileFormat and IncludeColumns properties let you further customize how the file is saved.

Using the FileFormat property you can specify if the file should be saved as a Microsoft Excel 97/2003 file or as a Microsoft Excel 2007 file. The IncludeColumns property lets you specify the specific column names to export, if you do not wish to export all columns. If no columns are specified, all are exported.

For an example, see Exporting Data to an Excel File.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.