I am not sure it works like that in Flex. I suggest you try var cols:Array = dgSearch.columns; cols.push(column); dgSearch.columns = cols;
I can't recall if that works or not, but (ultimately, if it does not yet) it should. On Fri, Oct 23, 2020 at 1:23 PM Hugo Ferreira <[email protected]> wrote: > Hi, > > I have a Jewel DataGrid in mxml and I need to add a column at runtime, so I > tried this: dgSearch.columns.push(column); > There is no effect and not errors at all. > This is how I do in Flex. > > I'm doing it wrong in Royale ? > Or the DataGrid must be done 100% in mxml or 100% in AS ? >
