How Can we add new column dynamically in the data grid

1
Currently I have 5 Columns , how can we increase more column dynamically, while running application
asked
2 answers
2

Without prior knowledge of the data that the column needs to show: no, not possible since the datasource of the datagrid has no runtime-changable parameters.

If the extra column is already known, then the option is to design-time add all columns that you want shown, use css to hide the ones you don’t want to show when first shown and add buttons that unhide a hidden column.

DataGrid2 has options to hide columns, but than you would have to upgrade to Mx9.

answered
1

If it’s just one column and you know which one it is, you can create 2 datagrid, then you just have to adapt the visibility of both of them depending on which one you want it to appear.

answered