PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Sorting the columns (AAF)
  • Simple sort
  • Multiple sort
  • Storing the sorts
  • Development and programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
WINDEV allows the user to easily sort the columns of a Table control.
The sorts can also be performed by programming.
Note: These operations can also be performed on a TreeView Table control.
Sorting the columns (AAF)

Simple sort

To sort the columns of a Table control, the user must click the title of the column.
The sortable columns are identified by a double arrow.
When the sort is enabled, a small arrow indicates the sort direction for the column.
Tip: To implement this feature, "Sortable" must be checked in the "General" tab of the description window of the column.

Multiple sort

To sort the content of a Table control on several columns, the user must:
  1. Keep the CTRL key down.
  2. Click the title of columns that will be taken into account for the sort. The columns must be selected according to the requested order. For example, to sort on the company then on the name, you must click the "Company" column first then the "Name" column.
Note: The multiple sort is available for the memory Table controls only.
Versions 17 and later

Storing the sorts

When one or more sorts have been performed by the user on the columns of a Table control, these sorts can be stored in order for these sorts to be applied by default.
To enable this feature, you must:
  1. Display the popup menu of the sort column of the Table control. See Popup menu of columns for more details.
  2. Select "Store the sorts".
New in version 17

Storing the sorts

When one or more sorts have been performed by the user on the columns of a Table control, these sorts can be stored in order for these sorts to be applied by default.
To enable this feature, you must:
  1. Display the popup menu of the sort column of the Table control. See Popup menu of columns for more details.
  2. Select "Store the sorts".

Storing the sorts

When one or more sorts have been performed by the user on the columns of a Table control, these sorts can be stored in order for these sorts to be applied by default.
To enable this feature, you must:
  1. Display the popup menu of the sort column of the Table control. See Popup menu of columns for more details.
  2. Select "Store the sorts".
Development and programming
When creating a Table control:
To make a column sortable, all you have to do is select "Sortable" in the "General" tab of the description window of the column.
By programming:
  • To sort the content of a Table control, all you have to do is use TableSort.
  • TableSortedColumn returns the list of sorted columns in the Table control.
  • Versions 17 and later
    ..StoreSortAAF is used to find out and specify whether the sort performed by the user on a Table control or on a TreeView Table control is stored between 2 launches of the application.
    New in version 17
    ..StoreSortAAF is used to find out and specify whether the sort performed by the user on a Table control or on a TreeView Table control is stored between 2 launches of the application.
    ..StoreSortAAF is used to find out and specify whether the sort performed by the user on a Table control or on a TreeView Table control is stored between 2 launches of the application.
  • ..SortOption is used to find out and modify the sort options used in a column of a Table control.
  • ..Sortable is used to find out whether a column is sortable and to make a column sortable or not.
  • Versions 19 and later
    To avoid proposing the "Store the filters" and "Store the sorts" options in the popup menu, all you have to do is use DisableAAF associated with the aafSaveFilterAndSort constant.
    New in version 19
    To avoid proposing the "Store the filters" and "Store the sorts" options in the popup menu, all you have to do is use DisableAAF associated with the aafSaveFilterAndSort constant.
    To avoid proposing the "Store the filters" and "Store the sorts" options in the popup menu, all you have to do is use DisableAAF associated with the aafSaveFilterAndSort constant.
    To avoid proposing the "Store the filters" and "Store the sorts" options in the popup menu, all you have to do is use AAFDisable (or DisableAAF) associated with the aafSaveFilterAndSort constant.
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment