BCGSuite for MFC
void CBCGPGridColumnsInfo::Resize ( int  nTotalWidth,
int  nStartColumn = -1 
)

Recalculates the width of columns to fit the working area of the grid control.

Call this member function to recalculate width of columns to fit the working area of the grid control. If the working area is greater then total width of columns, then the columns are expanded; otherwise the columns are collapsed. The width of locked columns is not changed, all other columns are resized proportionally.

Parameters
nTotalWidthSpecifies the width of the working area in grid control to fit columns in.
nStartColumnZero-based index in internal columns list, or -1. Specifies the column from which the object should begin resizing. The columns, which are before the specified column, will not be resized. If -1, all not-locked columns will be resized.