PDA

View Full Version : Datagrid loses formatting on reload


wainui
04-26-2005, 11:11 PM
Hi,

I have a data grid which I am formatting with the following global styles
// style stuff
_global.style.setStyle("color", 0x000000);
_global.style.setStyle("fontSize", 8);
_global.style.setStyle("fontFamily", "standard 07_55");
_global.style.setStyle("embedFonts", true);
//

The on the frame it appears I am also adding
myDataGrid.rowHeight = 15;
myDataGrid.headerHeight = 15;
myDataGrid.setStyle("headerStyle", headerStyles);
myDataGrid.setStyle("headerColor", 0xffffff);


This works fine but in my movie if I go to another frame then back to the datagrid on reloading I lose my formatting.. The font stays OK it is more the row height defaults back to 20 (or more)..

Any ideas how to stop this???
Thanks..

wainui
04-27-2005, 12:24 AM
>> Sorted the problem..

I was using a charting component which was setting the _quality to "LOW" which resulted in my formatting changes..

Thanks for looking anyway!