And I can fix issue number 2 by setting the "header" property myself.
I think these fixes are just workarounds and not a clean solution. Any ideas how to use CGridView in this scenario without hacks??? Somehow CGridView refers to the outside $model instead of the models provided by CArrayDataProvider…
What is your controller called? Is it PersonController? because from CButtonColumn.php:
So the best way is to do your first fix. For the second fix:
Go to your Address Model and change the attributes from there. change the array in attributeLabels method.
thanks for your reply. "attributeLabels()" is filled correctly on "Address". When I use the CGridView during the AddressController life cycle the values are translated fine. Thus I guess something breaks when it used during the PersonController life cycle.