BCGControlBar Pro for MFC
int CBCGPGridCtrl::GetColumnCount ( BOOL  bCalcVisibleOnly = FALSE) const

Returns the number of columns in the grid control.

Returns
Parameters
bCalcVisibleOnlySpecifies whether hidden columns should be ignored.