Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

HtmlDocumentExporterOptions.UseColumnGroupTag Property

Gets or sets a value indicating whether the column width should be exported to HTML using the <colgroup> tag.

Namespace: DevExpress.XtraSpreadsheet.Export

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll

Declaration

[DefaultValue(true)]
public bool UseColumnGroupTag { get; set; }

Property Value

Type Default Description
Boolean **true**

true, to specify the column width in the <colgroup> tag; otherwise, false.

Remarks

By default, the UseColumnGroupTag property is set to true and the SpreadsheetControl exports the width of a single column using the <col> tag within the <colgroup> tag.

To provide compatibility of the resulting HTML file with the Rich Text Editor, set the UseColumnGroupTag property to false. In this case, the column width will be exported to HTML using the style attribute of the <td> tag.

See Also