Showing/Hiding Columns
The Data Table Column element's Condition attribute can be used to dynamically show or hide the column at runtime, and you may want to do this based on the table's data. However, there's an important restriction on this attribute: an expression used as its value cannot include @Data tokens. This is because any tokens used here must be available to be resolved when the table structure is being built but, because the table's datalayer doesn't run until later, there are no @Data tokens available at that time.
One solution is to use Local Data, then @Local tokens would be available when the table structure is being built and could be used in the Condition attribute. Other types of tokens, of course, can be used in Condition attribute expressions.
We do not recommend using Show Modes for this purpose. The attribute was removed in v12.1.188 but you may encounter it in earlier versions. Use the Condition attribute instead.