PDA

View Full Version : Customize a Datagrid Row


nathaniel
07-15-2005, 10:57 PM
I believe that the Macromedia website says the following is not possible, so this question might be a challenge :D

I simply want to customize the appearance of a datagrid row based on information in the row; more specifically, I have a datagrid (table) that has a column for chapters and I want the background color of the datagrid to alternate with every new chapter.

There's nothing built into the component that allows you to customize the appearance of a specific datagrid row. But I'm guessing that there's a hack out there somewhere. I've tried unsuccessfully for the past few days, but I'm an amateur prorgrammer. Your input is most welcome!

Thanks
:confused: Nate

deadbeat
07-15-2005, 11:06 PM
You can do this with a custom cellRenderer...
http://www.macromedia.com/livedocs/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002108.html#wp3136809

Here are some examples (the site is in French though)

http://philflash.inway.fr/dgstyle/dgstyle.html (I think this is basically what you're looking for)

and more:

http://philflash.inway.fr/example.html

HTH,

K.

lucky
01-12-2006, 07:51 AM
hi deadbeat,
thank you very match. this links are great.
that was very helpful for me.
thank you again