i have an advanced data grid with 5 colums , i have change the order of data grid column by drag and drop. Now I have a reset button on that reset button click i want to rearrange the order as previous it was.How to implement it , plesae hep me if anyone kow the answer.
I have A ,B C,D E column now i have changed the order to B,A,D,E C,
now on click of reset button i want A,B,C,D,E order of column
columns is an array. After the dataprovider is set, save the columns to a temporary array
private var tempColumns:Array; tempColumns = datagrid.columns;
When the reset button is clicked, reset the columns from the tempArray.
datagrid.columns = tempColumns;