Erase columns in DataGrid


greets, long time without doubts

 

my question is:

 

i have 2 datagrids first 1 has 1 fixed column , second 1 has 4 fixed columns

 

i use button convert rows of datagrid 1 in columns, if delete row in datagrid 1 must delete corresponding column in datagrid 2

 

how can delete columns of datagrid 2 in way???

if want delete content of column, must work on datagrid's dataprovider.

if want remove column, can use :

 

var columnscollection    :arraycollection = new arraycollection( yourdatagrid.columns ); columnscollection.removeitemat( columnscollection.getitemindex( youdatagridcolumn ) ); yourdatagrid.columns = columnscollection.toarray(); 


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO