BCGSuite for MFC
void CBCGPDBGridCtrl::SetDbSort ( BOOL  bSet = TRUE)
inline

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).

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