|
virtual bool COView::SetSortOrder(ULONG nCols, const ULONG pnCol[], const DBSORT pnSort[]); Return Value true if successful; otherwise false. Parameters [in] nCols: A value indicating the size of column ordinals pointed by pnCol and sorts pointed by pnSort. [in] pnCol: A pointer to an array of column ordinals with size of nCols. [in] pnSort: A pointer to an array of sorts with size of nCols. Each of sorts can only be either DBSORT_ASCENDING or DBSORT_DESCENDING. Remark Calls the function to set a set of sorts to the opened COView object. For how to use it, see the example FilterSort. |