[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.AutoSizeCol

AutoSizeCol Method

AutoSizeCol(int)

Adjusts the width of a column to fit the data.

Declaration
public virtual void AutoSizeCol(int col)
Parameters
Type Name Description
int col

Column index.

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 AutoSizeCols(int, int, int, int, int, AutoSizeFlags) method instead, because it allows you to specify a smaller set of rows and columns to measure.

AutoSizeCol(int, int)

Adjusts the width of a column to fit the data.

Declaration
public virtual void AutoSizeCol(int col, int extraSpace)
Parameters
Type Name Description
int col

Column index.

int 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 AutoSizeCols(int, int, int, int, int, AutoSizeFlags) method instead, because it allows you to specify a smaller set of rows and columns to measure.