BCGControlBar Pro for MFC
void CBCGPGridCtrl::EnableRowHeader ( BOOL  bEnable = TRUE,
DWORD  dwFlags = (DWORD)-1,
int  nWidth = -1 
)

Shows or hides vertical header at left.

Parameters
bEnableIf TRUE, the header will be shown. If FALSE, the header will be hidden.
dwFlagsSpecifies combination of flags.
nWidthSpecifies the width of the row header in pixels.

Use this method to show or hide the row header (for example, to display the row numbers). dwFlags parameter can be a combination of the following flags:

  • BCGP_GRID_HEADER_MOVE_ITEMS: allow mouse click on row header item to start drag and drop operation.
  • BCGP_GRID_HEADER_SELECT: allow mouse click on row header item to select a row. By default, BCGP_GRID_HEADER_SELECT flag is used.