Replied 24 April 2019, 10:39 pm EST
Could you please explain some more about your requirement like
What I am trying to do is exporting to Excel.
We have a FlexGrid but it contains only a single page of data. In other words there is server side pagination.
But we need to export all the data to Excel. And it should be flexible code that will work wih different grids.
So what we do:
1) Create new FlexGrid dynamically
2) Take all columns from original FlexGrid and put into a new FlexGrid
3) Load all the data from the server and put it into a new FlexGrid
4) Export do Excel and dispose new FlexGrid
Exporting itself works well but columns disappear from original FlexGrid...
I think this is because Step 2 where columns are put into another FlexGrid.
That's why I need to create a copy of column.