CGXGridCore::OnGetSortRowsKey
virtual void OnGetSortRowsKey(ROWCOL nRow, const CGXSortInfoArray& sortInfo, CStringArray& keys);
nRow
Specifies the row id.
sortInfo
This is an array of CGXSortInfo objects that contain the sort information for each key. See SortRows for information about CGXSortInfo.
keys
Reference to a string array where the sort keys for all columns in sortInfo should be returned.
Remarks
This method is called from SortRows to get the sort keys for the row. OnGetSortRowsKey loops through all columns in the CGXSortInfoArray specified for the sort order and calls CGXGridCore::GetSortKey to get the sort key for each specified column in the row. 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::SortRowsCGXGridCore::GetSortKeyCGXControl::GetSortKey