Currently the datagrid widget doesn’t have visibility tab for columns, it would be best if we can render the columns on conditions, just like any other widget, as sometimes we need to display some column based on a condition.
The condition of the visibility is based on an attribute, and using hidden class is just the same as removing the column from the gridview, and you also cannot use dynamic classes on the gridview
class “hidden” works fine on a datagrid. Some logic with the Dynamic classes → visible/hidden could be your solution