Convert from actual grid index into 0 offset column index, option to expand as well.
bool CheckConvertCol( int & nCol, bool bExpand )
false if nCol is invalid or there's not enough column, otherwise true
Example codes can be pasted to doExample() function in GridControl's examples to run
int nCols = m_GridCtrl.GetNumCols(); int nCol = nCols+1; bool bRet = m_GridCtrl.CheckConvertCol(nCol, true);//bExpand=true to add enough columns out_int("bRet=", (int)bRet); out_int("nCol=", nCol);
GridControl.h