To set the ExportTo method, add the following code to the Click event of the Export button:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.ExportTo() |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.ExportTo(); |
Clicking the Export button opens the TrueDBGrid Print/Export Options dialog box.
The final output will look similar to the following image: