[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGrid.AutoSizeColumns

AutoSizeColumns Method

AutoSizeColumns(int, int, double)

Resizes a column range to fit their visible content.

Declaration
public void AutoSizeColumns(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.

AutoSizeColumns(int, int, double, bool, bool)

Resizes a column range to fit their content.

Declaration
public void AutoSizeColumns(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.