[]
Resizes a column range to fit their visible content.
public void AutoSizeColumns(int startCol, int endCol, double extra)
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. |
Resizes a column range to fit their content.
public void AutoSizeColumns(int startCol, int endCol, double extra, bool allCells, bool skipStars)
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. |
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.