Add columns to a grid

With an action is it possible to add columns to a grid? The columns are not part of the model that represents the grid, how can I do this?


You cannot add the column with action whether that field is present in model or not.
But You can keep the column hidden and show it conditionally by specifying showIf attribute.
And as field is not part of model, means it will be dummy field so you can assign the value for that field by overriding populate method of repository.

Thank you

Thanks for the answer, and from the controller is it possible to modify the number of columns in the grid?