| Home | Previous Lesson: Sort Service Next Lesson: Sorting On Display Values Rather Than Data Values |
PFC also supports Windows 95 type sorting. If you are a Windows 95 user, you might have observed in the Explorer that, whenever you click on one of the column, say, "File Type", Windows 95 automatically sorts on that column without prompting you with any sort criteria dialog box.
You just need to call of_SetColumnHeader() function, That�s all.
dw_product.inv_sort.of_SetColumnHeader(TRUE)
When the user clicks on one of the DataWindow column headers, PFC automatically sorts on that column in an ascending order. If the user clicks on the same column again, PFC sorts the column in a descending order. If the user selects sort option from the menu, PFC displays an appropriate dialog box, depending on the of_SetStyle() parameter sent by you. You may not want to enable this type of service for FreeForm presentation style DataWindows. The sort service works in the print preview mode also. Column Header Click sorting (Windows 95's way) doesn't work on N-Up presentation style DataWindow. However, of_SetExclude() has no effect in Windows 95 style sorting, i.e., sorting the column when the user clicks on the column header.
| Home | Previous Lesson: Sort Service Next Lesson: Sorting On Display Values Rather Than Data Values |