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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.