Jump to content

datagrid - cell and header formatting - pls help!


marmite

Recommended Posts

:'(

 

I'm going mad, if not there already!

 

All I want to do is format my dataGrid so that headers align centrally, and data in the cells align right (for numbers) and centre (for text). I would also like to format numbers >1000 with a thousand comma separator...

 

I'm using AS3 in CS4 with deadline approaching.

 

Is this what I have to do:

1) Set up a .as file, and call it MyCellRenderer.as

2) Put a package{} in this .as file, and enter a Class and Function called MyCellRenderer and MyCellRenderer() respectively

3) Put a movieClip in my .fla library and name it MyCellRenderer with link to class MyCellRenderer

4) Do I also reference the .as file in the Class line under Properties at the stage level in my .fla?

 

This seems a lot of effort to align some text!

 

And it doesn't work! I get error #2007 "Parameter child must be non-null" from this line in my .fla code: myDataGridColumn.cellRenderer = "MyCellRenderer"

 

Going insane

Emma

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.