BCGSuite for MFC
virtual void CBCGPGridCtrl::Sort ( int  nColumn,
BOOL  bAscending = TRUE,
BOOL  bAdd = FALSE 
)
virtual

Sorts the grid control.

Use this function to immediately sort the grid control by the specified column in the specified order.

If bAdd is set to TRUE, iColumn is added to the current list of sort columns. In this case the grid control should be in multiple sort mode (call on EnableMultipleSort()).

Parameters
bAscendingSpecifies the sort order
bAddSpecifies whether the specified column should be added to the current list of sort columns
nColumnSpecifies the column to sort.

Reimplemented in CBCGPDBGridCtrl.