Click or drag to resize
GridControlResizeRowHeightsToFit Method (Range, Boolean, RedrawFlags)
Automatically resizes the row heights for a given range of cells.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool ResizeRowHeightsToFit(
	Range range,
	bool resizeCoveredCells,
	RedrawFlags redraw
)

Parameters

range
Type: Stingray.GridRange
The range of cells.
resizeCoveredCells
Type: SystemBoolean
If true, the covered cells are resized.
redraw
Type: Stingray.GridRedrawFlags
The redraw technique. It can take one of the following values:
UpdateNow
to update the window after each row height change.
Invalidate
to simply invalidate the window area to the bottom of the first row that is resized.
NoShrinkSize
specifies that the row height should not become smaller: rows will be enlarged only.

Return Value

Type: Boolean
true if the command is successfully executed; false if the command fails or if the user aborts the operation.
See Also