I've got a few grid style DW's that I'd like to automatically sort when the user clicks on the column name (label). I'm using PB2021 and the latest PFC. The dw's inherit from u_dw. I'm turning on the sort service, but it seems to be ignored. I'd like to sort on the column without any pop-up windows asking for columns, drag/drop etc.
In the dw's constructor event:
this.inv_sort.of_SetColumnNameSource(0) // Use the column names for sorting
this.inv_Sort.of_SetColumnHeader( TRUE ) // Sort when user clicks column header
this.inv_Sort.of_SetStyle( 0 ) // PB's Drag/Drop Sort window
This is not my preferred style, though. Even so, I don't know how to pop-up the drag/drop sort window, either, without a separate menu option (Sort).
Any advice is appreciated.