BCGSuite for MFC
int CBCGPGridCtrl::InsertRowBefore ( int  nPos,
CBCGPGridRow pItem,
BOOL  bRedraw = TRUE 
)

Inserts a row before specified position.

Returns
Index at which the row has been inserted. If it's -1, the row can't be inserted, because pItem has already been inserted in the grid control.

Use this method to insert a row before specified by nPos position. The row should be unique.

Parameters
nPosSpecifies the position (index) in the grid control, after which the row should be inserted.
pItemPoints to the row to be inserted.
bRedrawIf TRUE, the grid control will be redrawn after insert.