the datagrid has a property called columns which stores the list of
columns in the datagrid.
you can store the columns in a arraycollection as follows:-
ac:arraycollection = new arraycollection(dg.columns);

now iterate over this arraycollection and set the visible property
true or false depending upon your logic.
then set
dg.columns = ac.toArray();

On Mar 8, 10:35 pm, mahee <[email protected]> wrote:
> Hi,
>
> I have a datagrid within an advanced datagrid.
> I need to control the columns(selected columns must be visible) based
> on the field in the advanced data grid.
> How can I achieve this.
>
> Regards,
> Mahee

-- 
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.

Reply via email to