Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Makes the row high enough to fit the cell content with the largest height and returns true if successful or false otherwise.

virtualbool BestFitRow(
   LONG nRowNo,
   INT nRowType = 0,
   bool bDoBestFitByOuterCells = true,
   bool bDoBestFitByInnerCells = true,
   bool bDoBestFitByVisibleRowRangeOnly = true,
   bool bRedraw = true


Row index.
Type of the row (0 - inner row, -1 - outer row on top, 1 - outer row on bottom).
Indicates the content of outer grid cells should be measured if bDoBestFitByOuterCells is true; ignored otherwise.
Indicates the content of inner grid cells should be measured if bDoBestFitByInnerCells is true; ignored otherwise.
Indicates the content of inner grid cells that is visible at the moment should be measured only if bDoBestFitByVisibleRowRangeOnly is true; otherwise, the content of all inner cells in this row (if bDoBestFitByInnerCells is true) will be measured.
Indicates that the grid control is to be immediately redrawn if bRedraw is true.

See Also

CExtGridWnd Overview | Class Members | Hierarchy Chart