The report grid control always assumes you can use different fonts in any grid cells.
To increase data row height in your report grid control you should do the following:
1) Override the following virtual method in your CExtReportGridWnd
class:
virtual bool OnTreeQueryPlainGridModeVeticalLayout() const
{
return true;
}
2) Add at least one outer header column on the left:
wndReportGrid.OuterColumnCountLeftSet( 1L, false );
This is needed for keeping information about a custom row height in each report grid’s data row.
3) If you don’t need outer header columns, then you can make it width equal to zero:
wndReportGrid.OuterColumnWidthSet( true, 0L, 14 );
4) Initialize header cells in the outer header column at left and specify required row height:
CExtGridCell * pCellHdr;
pCellHdr = GridCellGetOuterAtLeft( 0L, nRowNo, RUNTIME_CLASS( CExtGridCellHeaderFilter ) );
ASSERT_VALID( pCellHdr );
pCellHdr->ExtentSet( 40 );
The code above sets the row height to
40
pixels.
If you need to change the height of outer header row at top, then invoke the following code:
wndReportGrid.OuterRowHeightSet( true, 0L, 40 );