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.
Duplicate of https://forum.mendix.com/link/space/usability/ideas/127 ( 7 year ago)
As i can no longer wait, I opened a PR https://github.com/mendix/web-widgets/pull/744
Ideally we could use the “Visible” dialog on the column. Therefore we can use roles to show and hide columns. However the visible property can not (jet) be used for extra properties.
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