Hari, You can use
mydatagrid.selectedItem["Customer"]; or var str:String = "Customer"; mydatagrid.selectedItem[str]; Irina --- In [email protected], Hari Kolasani <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a Dynamic DataGrid (I create DataGrid columns dynamically based > on the query Results from back-end.). > > Once the datagrid is populated and a row is selected , I can get the > selectedItem as an object and I can see the values of the columns (in > FLex Builder debugger). > > But, is there any to retrieve the column values using a dynamic column > name. > > For e.g something like > > var colName:String = "Customer"; > > "mydatagrid.selectedItem.getColumnValue(colName)" > > Insted of ""mydatagrid.selectedItem.Customer" > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/

