PDA

View Full Version : As3 DataGrid - Alternate Row Colors



noobie123
August 21st, 2009, 02:51 AM
I need an editable datagrid to teach subtraction. I tried
aDg.setStyle("alternatingRowColors", ["0xF0F0F0", "0xFFFFFF"]);

What could've gone wrong?

shubs6
August 21st, 2009, 07:09 AM
try this
aDg.editable = true;
and put the editable property of DataGridColumn of the Datagrid to true.

prodaea
September 2nd, 2009, 04:20 PM
For the alternating row thing, you may want to check out http://blogs.adobe.com/pdehaan/2007/06/alternating_background_colors.html