[]
Adjusts the width of a column to fit the data.
public virtual void AutoSizeCol(int col)
Type | Name | Description |
---|---|---|
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(int, int, int, int, int, AutoSizeFlags) method instead, because it allows you to specify a smaller set of rows and columns to measure.
Adjusts the width of a column to fit the data.
public virtual void AutoSizeCol(int col, int extraSpace)
Type | Name | Description |
---|---|---|
int | col | Column index. |
int | extraSpace | Amount of extra space, in pixels, to add to the column widths. |
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.