You can crate DataGridColumn dynamically by creating an object of DataGridColumn class like myColumn = new DataGridColumn(); and then make a array from these columns like arrCol.push(myColumn); and then columns property of your datagrid as myDg.columns = arrCol;
I hope this helps you please reply Regards, Kalpesh Mahida On Wed, Mar 4, 2009 at 2:54 PM, Akhil Agrawal <[email protected]>wrote: > > Hi, > i want to crate a table for displaying data in flex. how can i do > this. if i use datagrid control or any control how to add column to > that at run time because no. of columns may vary.... > > thanx > > regards > akhil agrawal > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

