Skip to main content

Worksheet.DefaultColumnWidth Property

Gets or sets the default column width in units of measurement used in the workbook.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core


float DefaultColumnWidth { get; set; }

Property Value

Type Description

A Double value that is a column width in units of measurement that are in effect.


Use the DefaultColumnWidth, Worksheet.DefaultColumnWidthInCharacters or Worksheet.DefaultColumnWidthInPixels property to set the width of worksheet columns whose width is not specified explicitly. If you need to set the width of all columns on the worksheet to the same value and override all previously applied column width settings, use the CellRange.ColumnWidth property of the Row object corresponding to any row on a worksheet.

For more information on how to change the height of rows and the width of columns, see the How to: Specify Row Height or Column Width example.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DefaultColumnWidth property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also