The following example demonstrates how to modify some of an HtmlClipboardExporter's properties.

VB.NET
Copy Code
Dim htmlExporter As HtmlClipboardExporter = TryCast(Me.testGrid.ClipboardExporters(DataFormats.Html), HtmlClipboardExporter) 

htmlExporter.IncludeColumnHeaders = True

htmlExporter.FormatSettings.DateTimeFormat = "f"

htmlExporter.FormatSettings.NumericFormat = "0.0000"
C#
Copy Code
HtmlClipboardExporter htmlExporter = this.testGrid.ClipboardExporters[ DataFormats.Html ] as HtmlClipboardExporter;

htmlExporter.IncludeColumnHeaders = true;

htmlExporter.FormatSettings.DateTimeFormat = "f";

htmlExporter.FormatSettings.NumericFormat = "0.0000";