
Welcome Guest
|
#1
|
||||
|
||||
|
Setting DataGrid header styles using CSSStyleDeclaration
I am trying to set the header styles of a data grid. I want them to be different from the style I use with the data in the grid. I look in the Flash help to see how to do it. It seems pretty straight forward:
Customizing the DataGrid component Quote:
Actionscript:
import mx.styles.CSSStyleDeclaration;
var headerStyles = new CSSStyleDeclaration();
headerStyles.setStyle("fontStyle", "italic");
grid.setStyle("headerStyle", headerStyles);Now if you try something like this, you will get errors saying that there is no method with the name 'setStyle'. So I go check out mx.styles.CSSStyleDeclaration AS file and Flash is right. There is not mehod called setStyle in CSSStyleDeclaration.as. There is a getStyle method though. Is it just me or does this seem really retarded?
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius Blog | Shared Items |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with links using flash header and dynamic pages | chipshot | Newbies |
0 | 04-07-2007 03:54 AM |
| setting styles for buttons | [PAUL FERRIE] | Actionscript 1 Components |
3 | 12-08-2006 06:24 PM |
| Cached Flash, will setting the HTTP header resolve the problem? | jjspoons | Flash MX |
1 | 09-02-2005 02:54 PM |
| DataGrid Component V2 Header Gradient | Scottae | Actionscript 2.0 Components |
7 | 06-03-2005 05:41 PM |
| Setting dropdown indexes in Combo Box embedded in a datagrid | clem_c_rock | Actionscript 2.0 Components |
0 | 03-27-2005 06:44 AM |






