ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / AutoSizeCol Method / AutoSizeCol(Int32,Int32) Method
Column index.
Amount of extra space, in pixels, to add to the column widths.

In This Topic
    AutoSizeCol(Int32,Int32) Method
    In This Topic
    Adjusts the width of a column to fit the data.
    Syntax
    'Declaration
     
    Public Overloads Overridable Sub AutoSizeCol( _
       ByVal col As Integer, _
       ByVal extraSpace As Integer _
    ) 
    public virtual void AutoSizeCol( 
       int col,
       int extraSpace
    )

    Parameters

    col
    Column index.
    extraSpace
    Amount of extra space, in pixels, to add to the column widths.
    Remarks
    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 C1.Win.C1FlexGrid.C1FlexGridBase.AutoSizeCols method instead, because it allows you to specify a smaller set of rows and columns to measure.
    See Also