I have opened an enhancement request for a new message like SAM_ColHeaderClick for the Grid and Table Window to determine which column header our customer has clicked. For Table Windows we have MTable, for the Grid it seems that we have nothing like this. No TD message. I can see a WM_CAPTURECHANGE but there isn't HWND for the column header.
We need this for sorting purposes. Some numbers like invoice numbers, file numbers or other reference numbers have both numbers and characters. Internally in database there is a unique number. In the Grid we want to hide this unique number because it is not interesting for the customer. But customer wants to sort ascending/descending according to this "unique key".
Example:
Reference numbers are composed of a current number and the year. Every year the current number starts at 1.
In the database we have the unique numbers and the reference number:
20190003 3/2019
20190002 2/2019
20190001 1/2019
20180999 999/2018
20180998 998/2018
It is not possible to sort the reference number in the right chronologically way without making the unique number visible. With a message SAM_ColHeaderClick we could handle this cases programmatically. Knowing that customer clicks the column header of the (visible) reference number we could sort the grid by the (not visible) unique number.
TD-24712: new message SAM_ColHeaderClick
TD-24712: new message SAM_ColHeaderClick
Best regards,
Uwe van der Horst
Advo-web GmbH
Uwe van der Horst
Advo-web GmbH
-
- Founder/Site Admin
- Posts: 2946
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-24712: new message SAM_ColHeaderClick
This has been implemented in TD 7.3
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Who is online
Users browsing this forum: [Ccbot] and 0 guests