I have a table window which displays events and their history. I would like to disable the rows showing historical data. I have tried put code in the SAM_FetchRowDone event to disable each column cell of a row but that does not work or something is enabling the cells again afterwards. I have seen a reference to M!Table which seems to have this functionality, but unless I absolutely have to I would prefer not to introduce more 3rd party code into a legacy app.
not really sure about what you want.
But maybe this helps:
We catch SAM_RowSetContext then we disable or enable one or more columns.
Since you can't disable indiviual cells but only whole columns you have to set that whenever the context goes to another row.
Or do you want to have them gray? Then you have to set the textcolor of the column on SAM_FetchRowDone additonally.
[ frevel & fey ] Software-System GmbH
- Founder/Site Admin
- Posts: 484
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Block keystrokes when needed. The sample will let you edit the second column when the first column checkbox is on (as an example).
Who is online
Users browsing this forum: Ccbot [Crawler] and 0 guests