CGXGridCore::OnGetSortColsKey
virtual void OnGetSortColsKey(ROWCOL nCol, const CGXSortInfoArray& sortInfo, CStringArray& keys);
nCol
Specifies the column id.
sortInfo
This is an array of CGXSortInfo objects that contain the sort information for each key. See SortCols for information about CGXSortInfo.
keys
Reference to a string array where the sort keys for all rows in sortInfo should be returned.
Remarks
This method is called from SortCols to get the sort keys for the column. OnGetSortColsKey loops through all rows in the CGXSortInfoArray specified for the sort order and calls CGXGridCore::GetSortKey to get the sort key for each specified row in the column. CGXGridCore::GetSortKey will call CGXControl::GetSortKey to determine the value. By default, CGXControl::GetSortKey will return the value of the cell.
Override CGXControl::GetSortKey or CGXGridCore::GetSortKey if you want to return a different sort key.
Control-Factory Specific ->
This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementGridSort method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.
If no concrete implementation is available this method performs no action. A warning will be displayed in the debug window.
END Control-Factory Specific
See Also
CGXGridCore::SortCols CGXGridCore::GetSortKey CGXControl::GetSortKey