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

ColumnCollection.AutoFit Method

Name Parameters Description
AutoFit(Int32, Int32) first, last Adjusts the width of columns to accommodate cell content.
AutoFit(String, String) firstColumnHeading, lastColumnHeading Adjusts column widths to fit the cell content.