Changing the Title Headings of a tableview form at run time

Is there any way to change the text of the heading labels in a table view form? The labels are not available when using elements.allnames. I have tried using solutionmodel to get the field without luck. I have tried setting the label field’s dataprovider. I need to change the headings based on data in the selected record. I don’t want to lose all the sort and column movement functionality of the table view headings.

Thanks

you could create 2 columns with different labels, then hide one or the other…

Thanks. Unfortunately that is not a tenable solution. Each column is linked to a field and I have up to 16 column titles that need to change based on a variety of record values - normally up to about 20 different values over thousands of records. In this scenario I would have to make 320 fields and vary the column visibility at each record change.