ComponentOne FlexGrid for WinForms
AutoSizeCol(Int32) Method

C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > AutoSizeCol Method : AutoSizeCol(Int32) Method
Column index.
Adjusts the width of a column to fit the data.
Public Overloads Overridable Sub AutoSizeCol( _
   ByVal col As Integer _
public virtual void AutoSizeCol( 
   int col


Column index.
This method measures every cell in the column, taking into account the cell contents and style. If the grid has a large number of rows, consider using the AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) method instead, because it allows you to specify a smaller set of rows and columns to measure.
See Also


C1FlexGridBase Class
C1FlexGridBase Members
Overload List