BCGControlBar Pro for MFC
int CBCGPGridCtrl::GetSortColumn ( ) const

Returns the index of sorted column.

A zero-based index of a sorted column.

Call this member function to retrieve the index of sorted column. The sorted column can be set by SetSortColumn(). The header control item for the sorted column should display the sort arrow.

Use CBCGPHeaderCtrl::GetColumnState instead if the grid control is working in multiple sort mode.