BCGControlBar Pro for MFC
void CBCGPDBGridCtrl::SetDbSort ( BOOL  bSet = TRUE)

Sets the sorting mode.

The grid can work in two different sorting modes: DB sorting mode and regular sorting mode. In DB sorting mode the data is sorted using SQL SORT statement. In the regular sorting mode the grid is sorted using internal sorting algorithms (by the default columns are sorted lexicography).

bSetIf TRUE, the grid will be sorted using SQL SORT statement.