No, this would not be possible with the current API. However, we already have a ‘visible’ property in the column which you can get/set with JS – const visible = grid.columns[0].visible;
I knew the visible property but in order to make a column visible or not with that property I need to identify at runtime columns which should be visible or not.
A custom property, if any, could be a good solution to identify them.