Grid with list-box functionality

The following example shows you how to enable listbox-mode:

//////////////////////////////////////////////////////////////////
void CMyGridView::OnInitialUpdate( )
{
   CGXRecordView::OnInitialUpdate( );
   // Initialize default style
   StandardStyle( )
      .SetControl(GX_IDS_CTRL_STATIC);
   SetReadOnly(TRUE);
   // Initialization for listbox-mode
   HideCols(0, 0);
   CGXProperties* pProp = GetParam( )->GetProperties( );
   pProp->SetDisplayHorzLines(FALSE);
   pProp->SetDisplayVertLines(FALSE);
   GetParam( )->SetActivateCellFlags(FALSE);
   GetParam( )->EnableMoveCols(FALSE);
   GetParam( )->EnableSelection(GX_SELFULL);
   GetParam( )->SetSpecialMode(GX_MODELBOX_SS);
   GetParam( )->SetHideCurrentCell(GX_HIDE_ALLWAYS);
   // select first row
   SetCurrentCell(1,0);
   SelectRange(CGXRange( ).SetTable( ), FALSE);
   SelectRange(CGXRange( ).SetRows(1), TRUE);
}