CGXControl::GetSortKey

virtual void GetSortKey(ROWCOL nRow, ROWCOL nCol, const CGXSortInfo& sortInfo, const CGXStyle& style, CString& sKey);

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 will return the value of the cell. Override CGXControl::GetSortKey or CGXGridCore::GetSortKey if you want to return a different sort key, e.g., if you have a date control you could convert the date into a number. With a currency control, you could remove the leading ‘$’ so the sort key is recognized as a numeric value.

See Also

 CGXGridCore::SortRows  CGXGridCore::SortCols  CGXGridCore::GetSortKey

CGXControl

 Class Overview |  Class Members