AfterUserSort Event
Applies To
fpSpread control
Description
Occurs after one of the following occurs:
- The user clicks a column header
- The ColUserSortIndicator property is set to either 1(Ascending) or 2 (Descending) for a column
and the UserColAction property is set to 1 (Sort) or 2 (SortNoIndicator) and the data is sorted.
Syntax
afx_msg void OnAfterUserSortfpSpread(UINT, int, CWnd*, LPVOID);
Event fpSpread_AfterUserSort(ByVal Col As Long)
Parameters
The following parameter is available:
Parameter | Description |
---|---|
Col | Column on which sort occurred |
Remarks
Before the sort occurred, the BeforeUserSort or ScriptBeforeUserSort event occurred.
If the ColUserSortIndicator property is set to 3 (Disabled) or if the UserColAction property is set to 0 (Default), this event does not occur.
Use the SheetSendingEvent property if you want to return the sheet for which this event occured.
See Also
Allowing Users To Sort By Columns
ColUserSortIndicator, SheetSendingEvent, UserColAction properties
BeforeUserSort, ScriptBeforeUserSort events