Hi,

I have the following code that is called to create DataGridColumn's

var col:mx.controls.gridclasses.DataGridColumn;
col = new mx.controls.gridclasses.DataGridColumn(cname);
col.columnName=cname;
col.headerText=cname;
col.cellRenderer="MyCellRenderer";
col.headerRenderer="MyHeaderRenderer";
grid.addColumn(col);

I have noticed that when I specify the renderers as a String the 
columns are not rendered. However, if I simply specify the class as:

col.cellRenderer=MyCellRenderer;
col.headerRenderer=MyHeaderRenderer;

They are being instantiated. Could someone please explain the 
difference. The renderers were created as MXML and have the 
setValue method in a script.

Thanks.








Reply via email to