[Data Grid Reactive] Dinamically set the header text for columns in Datagrid
Forge component by OutSystems R&D

I am trying to set the Header attribute for a column in the DataGrid Component as a variable but it gives me the following error:

I tried assigning it to a local variable 




Hello @Takeru Mazuelos,

Thanks for bringing this subject to the discussion.

This post helped us finding a bug. I have already reported the issue to the team and it is going to be fixed on our next release.

Right now, I would suggest the following workaround:

1) Whenever you need to change the column header please use the following API on a Javascript Block:

GridAPI.ColumnManager.ChangeProperty(columnId, 'header', 'new header');

or if you prefer

GridAPI.ColumnManager.ChangeProperty(columnBinding, 'header', 'new header');


Make sure to only use the previous code when the Grid is Initialized. You might need to use the OnInitialize event of the Grid. Learn more about the OnInitialize event here.


Thank you for your swift answer, I'm happy I could help in any way.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.