[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGrid.AutoSizeFixedColumns

AutoSizeFixedColumns Method

AutoSizeFixedColumns(int, int, double)

Resizes a range of fixed columns to fit their visible contents.

Declaration
public void AutoSizeFixedColumns(int startCol, int endCol, double extra)
Parameters
Type Name Description
int startCol

Index of the first column to resize.

int endCol

Index of the last column to resize.

double extra

Extra width to add to the column, in pixels.

AutoSizeFixedColumns(int, int, double, bool, bool)

Resizes a range of fixed columns to fit their content.

Declaration
public void AutoSizeFixedColumns(int startCol, int endCol, double extra, bool allCells, bool skipStars)
Parameters
Type Name Description
int startCol

Index of the first column to resize.

int endCol

Index of the last column to resize.

double extra

Extra width to add to the column, in pixels.

bool allCells

Whether to measure all cells, including those that are not currently visible.

bool skipStars

Whether to skip star-sized columns.

Remarks

Setting the allCells parameter to true causes the grid to create and measure cell elements for the entire grid content, including rows and columns that are not currently visible. This option may be very time consuming if the grid contains a lot of data.