Hello, don't know it that helps, but you can certainly use dg.columns property, which returns you an array of DataGridColumn, on which you can switch by labelFunction to differentiate you two columns.
Ciao, r0main --- In flexcoders@yahoogroups.com, "Simon Fifield" <[EMAIL PROTECTED]> wrote: > Hi Flexcoders, > > I have a DataGrid that uses the same data in 2 columns but each with a > different labelFunction to display the data in different ways. the data is > called 'depart' in the dataProvider and so to get this data I have to the > same name to the 2 columns in the DataGrid that display the data > differently. > > When I use dg.getColumnName('depart') I always get the first of the 2 > columns. I know I can use dg.getColumnAt( colIndex ) but in the future I > would prefer to use the column name. I have seen an extended DataGid that > allows the dragging and re-ordering of columns so the ColumnIndex will not > be possible. > > Can I use id somehow? > > > Kind Regards, > > Simon Fifield > Mango Solutions 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/