CGridView - custom colum alignment

Hi,

Is it possible to set specific alignment ‘per column’ of CGridView?

For instance, I would like to have text data aligned left while numeric values aligned right and on top of that I need some other data just centered in a column.

Any ideas?

Thanks ahead!

You can do this for each column:





		array(

			'name'=>'Numeric_Model_Attribute',

			'htmlOptions'=>array(

				'style'=>'text-align: right;'

			),

		),

		array(

			'name'=>'Centered_Model_Attribute',

			'htmlOptions'=>array(

				'style'=>'text-align: center;'

			),

		),



THANKS !!!