Hi DAW,

On 'refreshing' a cDBCJGrid the piSortColumn either needs to be reset back to -1 or respected - currently neither is done!

To test scenario:

In the Order Entry workspace

Change the properties of oOrderDtl_Grid (Order.vw) to the following:
Code:
        //Set pbHeaderPrompts to True
        Set pbHeaderReorders to True
        Set pbHeaderTogglesDirection to True
        Set pbStaticData to True
To test:
1. Load an order
2. Click on the description column to sort
3. Click on the Order# field again
4. FIND (GT) the next order


Notice that the "SORT" icon is still present on the description field though its not sorted.

On refreshing a cDBCJGrid, either respect the piSortColumn value and sort the grid accordingly or reset it.

Thanks.