BCGSuite for MFC
BOOL CBCGPGridCtrl::SelectFirstLastItemInRow ( BOOL  bIsFirst,
BOOL  bShift,
BOOL  bRedraw = TRUE 
)

Moves selection to the first/last cell in the current row.

Parameters
bIsFirstTrue - move selection to the first item; FALSE - to the last.
bShiftSpecifies whether items range between the current and new items should be selected.
bRedrawIf TRUE, the grid control should be redrawn.