Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To allow users to sort columns

  1. If you want to prevent the user from sorting on a specific column, call the SSSetColUserSortIndicator function and set the parameters as follows:
    1. Set the Col parameter to specify the column.
    2. Set the nColUserSortIndicator parameter to 3 (SS_COLUSERSORTINDICATOR_DISABLED).
  2. Call the SSSetUserColAction function and set the nUserColAction parameter as follows to specify what action to perform when the user clicks any column header:
    • If you want a column to be sorted when the user clicks a column header and to display the sort indicator, set the nUserColAction parameter to 1 (SS_USERCOLACTION_SORT).
    • If you want a column to be sorted when the user clicks a column header and to not display the sort indicator, set the nUserColAction parameter to 2 (SS_USERCOLACTION_SORTNOINDICATOR).
  3. If your sheet displays multiple headers and you want the sort indicator to display in a row other than the bottom-most header row, specify which column header row will display the indicator by calling the SSSetColHeadersUserSortIndex function.
Copyright © GrapeCity, inc. All rights reserved.