[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGrid.AutoSizeRows

AutoSizeRows Method

AutoSizeRows(int, int, double)

Resizes a row range to fit their visible contents.

Declaration
public void AutoSizeRows(int startRow, int endRow, double extra)
Parameters
Type Name Description
int startRow

Index of the first row to resize.

int endRow

Index of the last row to resize.

double extra

Extra height to add to the row, in pixels.

AutoSizeRows(int, int, double, bool)

Resizes a row range to fit their content.

Declaration
public void AutoSizeRows(int startRow, int endRow, double extra, bool allCells)
Parameters
Type Name Description
int startRow

Index of the first row to resize.

int endRow

Index of the last row to resize.

double extra

Extra height to add to the row, in pixels.

bool allCells

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

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.