BCGSuite for MFC
int CBCGPGridCtrl::SortChildRows ( CBCGPGridRow pParent,
BOOL  bAscending = TRUE 
)

Sorting child rows at one level of hierarchy.

Call this member function to immediately sort all children of the specified row in the grid control.

Parameters
pParentA pointer to the grid row
bAscendingSpecifies the sorting direction.
Returns
A number of the sorted rows.