How do I output the fields in the headers of the gridview in YII2?

For example, a request is made to the months of the year. In the gridview will appear in the format.
January
February
March
April

And I need to be
January | February | March | April
July 8th 19 at 12:22
1 answer
July 8th 19 at 12:24
Well, you can pass parameter to GridView columns? Can. So pass your array with the months.

Find more questions by tags PHPYii