To set the ExportToHTML 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.ExportToHTML("c:\temp\composers.html") |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.ExportToHTML(@"c:\temp\composers.html"); |
Clicking the Export button creates an HTML file in the temp directory indicated in the code above: