is you problem solved ?
if not here is solution.
you must determine how many columns you want in creation complete.
use a for loop to create array of columns then assign it to datagrid.colums
property.
and after that when ever on button click action happens you just need to add
column in that array.
and do validate
-----Original Message-----
From: Gaurav
Sent: Wednesday, May 04, 2011 8:19 AM
To: Flex India Community
Subject: [flex_india:33638] Adding datagrid columns dynamically
Hi Friends,
I am trying to add columns in a datagrid dynamically after some button
click event (or say after application creationComplete). It is not
showing up the columns.
Initially I created Datagrid with zero column. It is my requirement to
generate the columns after analyzing the dataset/dataprovider.
Regards,
Gaurav
--
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.
--
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.