BCGSuite for MFC
int CBCGPGridPage::m_nLastColumnInPage

Stores a zero-based index of last column on grid page.