Column.AutoFit() Method
Adjusts the column width to accommodate cell content.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Remarks
To automatically fit the width of several columns to the content, use the ColumnCollection.AutoFit method.
To set the column width value in required units of measurement, use the Column.Width, Column.WidthInCharacters or Column.WidthInPixels property (see the How to: Specify Row Height or Column Width example).
See Also