PDA

View Full Version : [AS3] any way to style one column of datagrid


secret007
03-13-2009, 07:23 AM
Hi,

I m wondering that is there any way to style one column of datagrid,

i have two columns in my datagrid one is at 0 index and other is at index 1,

i want to style only one column, i write this,

mydatagrid.getColumnAt(0).setStyle("textdecoration", underline);

but it's not working ... anyone tell me how to do this ..

thanks in advance..

Dr.Mabuse
03-13-2009, 08:32 AM
use an itemrenderer.

This should get you started:
http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/
http://butterfliesandbugs.wordpress.com/2007/07/11/using-an-itemrenderer-to-change-the-background-of-a-datagrid-cell/

TM