Need to align the title of the column(header_css_class) and content(align) dynamically of return of a method.
I tried like this in after calling a methodo and failed.
Example:
<?xml version="1.0"?>
<layout>
<sales_order_grid_update_handle>
<reference name="sales_order.grid">
<action method="addColumnAfter" ifconfig="dexxtz_customgrid/general/active">
<columnId>payment_method</columnId>
<arguments>
<header>Payment Method</header>
<index>payment_method</index>
<header_css_class>a-center</header_css_class>-->
<align>center</align>
<filter_index>payment.method</filter_index>
<type>text</type>
<width>100px</width>
</arguments>
<after helper="customgrid/getAfter" />
</action>
</reference>
</sales_order_grid_update_handle>
<adminhtml_sales_order_grid>
<update handle="sales_order_grid_update_handle" />
</adminhtml_sales_order_grid>
<adminhtml_sales_order_index>
<update handle="sales_order_grid_update_handle" />
</adminhtml_sales_order_index>
</layout>