How to filter out hidden columns?

Dear All,

Could you advise if it’s possible to filter the DG.ColumnList? I need to obtain an object similar to what we get from but excluding hidden columns. This object should allow calling methods like .names() and toList() etc. on it.

Thanks in advance!

Best regards,

1 Like

Hi Nailia,

Our JS API doesn’t provide the capability to get the filtered DG.ColumnList object, but you can filter it and get the column array. The example is provided in the code below.

const columns =;
const grid =;
const visibleColNames = columns.names().filter((col) => grid.columns.byName(col).visible);
const visibleColumns = columns.byNames(visibleColNames);

Kind regards,


Hi Dmytro,

Got it. Thanks a lot!

Best regards,

1 Like