CGXGridCore::GetSortKey
virtual void GetSortKey(CGXControl* pControl, ROWCOL nRow, ROWCOL nCol, const CGXSortInfo& sortInfo, const CGXStyle& style, CString& sKey);
pControl
Pointer to the control object for the cell.
nRow
Specifies the row id.
nCol
Specifies the column id.
sortInfo
This is the sort information. See SortRows for information about CGXSortInfo.
style
A const reference to the style-object of the cell.
sKey
A reference to a CString where the sort key should be returned.
Remarks
This method is called to return the sort key for a given cell. By default, GetSortKey calls CGXControl::GetSortKey which will return the value of the cell. Override CGXControl::GetSortKey or CGXGridCore::GetSortKey if you want to return a different sort key.
See Also
CGXGridCore::SortRowsCGXGridCore::SortColsCGXControl::GetSortKey