ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Exporting Grid Data

Grid data can be exported as a delimited text, Excel, HTML, PDF, or RTF file. The following table describes the methods used to export each file type:

 

File Type

Method

Description

All

ExportTo

Opens a dialog in which the user can select the export format.

Delimited Text

ExportToDelimitedFile

Exports the specified rows from the grid to the specified file as delimited text.

Excel

ExportToExcel

Exports the grid to an Excel file.

HTML

ExportToHTML

Exports the grid to an HTML file.

PDF

ExportToPDF

Exports the grid to a PDF file.

RTF

ExportToRTF

Exports the grid to an RTF file.

 

To set one the following export methods, add the appropriate code to the Click event of the Export button.


Exporting To All Available File Types

Exporting to Delimited Text

Exporting to Excel

Exporting to HTML

Exporting to PDF

Exporting to RTF


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