I think your problem is where you set the labelFunction Should look like this...
myColumn.labelFunction = mx.utils.Delegate.create(this, getRiferimento); -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 10:43 AM To: Flex Coders Subject: [flexcoders] LabelFunction problem Hi, if you can look my code please, this labelFunction don't work display nothing, but if i don't use dyn dataGridcolumn for examples <mx:DataGridColumn labelFunction="getRiferimento" headerText="Rif" width="50"/> work fine. Can you help me Devis function Init_Taglie() { dgsviluppo.removeAllColumns(); var myColumn: DataGridColumn= new DataGridColumn(); myColumn.headerText = "Rif"; myColumn.width=50; myColumn.labelFunction (getRiferimento()); dgsviluppo.addColumn(myColumn); myColumn =new DataGridColumn(); myColumn.headerText = "Descrizione"; myColumn.width=100; myColumn.columnName="de50sv"; dgsviluppo.addColumn(myColumn); for(var row=0;row<taglie.length;row++) { myColumn= new DataGridColumn(); myColumn.headerText = taglie[row]; myColumn.width=50; myColumn.columnName="tga"+(row+1)+"sv"; dgsviluppo.addColumn(myColumn); } dgsviluppo.dataProvider=vosviluppo; } Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

